CI4: Bugfix to correct two config issues

Adds 'payment_message' to the app_config table and corrects a typo in Views/login.php where 'Login.form' should have been 'login_form'.
This commit is contained in:
Doug Hutcheson
2023-10-19 10:20:36 +08:00
committed by jekkos
parent b4d117011a
commit 8ea5fc5078
2 changed files with 4 additions and 3 deletions

View File

@@ -15,7 +15,8 @@ class Migration_add_missing_config extends Migration
['key' => 'smtp_user', 'value' => ''],
['key' => 'smtp_pass', 'value' => ''],
['key' => 'login_form', 'value' => ''],
['key' => 'receiving_calculate_average_price', 'value' => '']
['key' => 'receiving_calculate_average_price', 'value' => ''],
['key' => 'payment_message', 'value' => '']
];
$this->db->table('app_config')->ignore(true)->insertBatch($image_values);

View File

@@ -56,7 +56,7 @@
<?= lang('Login.migration_needed', [$latest_version]) ?>
</div>
<?php endif; ?>
<?php if (empty($config['Login.form']) || 'floating_labels'==($config['Login.form'])): ?>
<?php if (empty($config['login_form']) || 'floating_labels'==($config['login_form'])): ?>
<div class="form-floating mt-3">
<input class="form-control" id="input-username" name="username" type="text" placeholder="<?= lang('Login.username') ?>">
<label for="input-username"><?= lang('Login.username') ?></label>
@@ -65,7 +65,7 @@
<input class="form-control" id="input-password" name="password" type="password" placeholder="<?= lang('Login.password') ?>">
<label for="input-password"><?= lang('Login.password') ?></label>
</div>
<?php elseif ('input_groups'==($config['Login.form'])): ?>
<?php elseif ('input_groups'==($config['login_form'])): ?>
<div class="input-group mt-3">
<span class="input-group-text" id="input-username">
<svg class="bi" fill="currentColor" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">