Skip to content

Commit 42d76d5

Browse files
authored
Fix: 3514 Fix UI not matching true value (hestiacp#3515)
1 parent 15ad001 commit 42d76d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/templates/pages/edit_web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class="<?= $v_status ?> js-enable-inputs-on-submit"
155155
<select class="form-select" name="v-redirect-code" id="v-redirect-code">
156156
<?php foreach ($redirect_code_options as $status_code): ?>
157157
<option value="<?= $status_code ?>"
158-
<?= $v_redirect_code === $status_code || (empty($v_redirect_code) && $status_code === $v_redirect_code) ? ' selected="selected" ' : "" ?>>
158+
<?= trim($v_redirect_code) === $status_code || (empty($v_redirect_code) && $status_code === trim($v_redirect_code)) ? ' selected="selected" ' : "" ?>>
159159
<?= $status_code ?>
160160
</option>
161161
<?php endforeach; ?>

0 commit comments

Comments
 (0)