Skip to content

Commit 6d06cdb

Browse files
committed
issue #2314 fixed
1 parent 069dd2e commit 6d06cdb

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

packages/Webkul/Installer/src/Helpers/EnvironmentManager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function generateEnv($request)
4848
*
4949
* @return string
5050
*/
51-
public function setEnvConfiguration($request)
51+
public function setEnvConfiguration(array $request)
5252
{
5353
$envDBParams = [];
5454

@@ -70,6 +70,7 @@ public function setEnvConfiguration($request)
7070
$envDBParams['APP_URL'] = $request['app_url'];
7171
$envDBParams['APP_LOCALE'] = $request['app_locale'];
7272
$envDBParams['APP_TIMEZONE'] = $request['app_timezone'];
73+
$envDBParams['APP_CURRENCY'] = $request['app_currency'];
7374
}
7475

7576
$data = file_get_contents(base_path('.env'));

packages/Webkul/Installer/src/Http/Controllers/InstallerController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ public function runSeeder()
8383

8484
$parameter = [
8585
'parameter' => [
86-
'default_locales' => $allParameters['app_locale'] ?? null,
87-
'default_currency' => $allParameters['app_currency'] ?? null,
86+
'default_locales' => $allParameters['app_locale'] ?? null,
87+
'default_currency' => $allParameters['app_currency'] ?? null,
8888
],
8989
];
9090

91-
$response = $this->environmentManager->setEnvConfiguration(request()->allParameters);
91+
$response = $this->environmentManager->setEnvConfiguration($allParameters);
9292

9393
if ($response) {
9494
$seeder = $this->databaseManager->seeder($parameter);

packages/Webkul/Installer/src/Resources/views/installer/index.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,14 +1182,14 @@ class="cursor-pointer rounded-md border border-brandColor bg-white px-3 py-1.5 f
11821182
},
11831183
11841184
startSeeding(allParameters) {
1185-
this.$axios.post("{{ route('installer.run_seeder') }}", {
1186-
'allParameters': allParameters,
1187-
})
1185+
this.$axios.post("{{ route('installer.run_seeder') }}", {
1186+
'allParameters': allParameters,
1187+
})
11881188
.then((response) => {
11891189
this.completeStep('readyForInstallation', 'createAdmin', 'active', 'complete');
11901190
11911191
this.currentStep = 'createAdmin';
1192-
})
1192+
})
11931193
.catch(error => {
11941194
setErrors(error.response.data.errors);
11951195
});

0 commit comments

Comments
 (0)