Просмотр исходного кода

Fix: 3514 Fix UI not matching true value (#3515)

Jaap Marcus 2 лет назад
Родитель
Сommit
42d76d535b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      web/templates/pages/edit_web.php

+ 1 - 1
web/templates/pages/edit_web.php

@@ -155,7 +155,7 @@
 						<select class="form-select" name="v-redirect-code" id="v-redirect-code">
 							<?php foreach ($redirect_code_options as $status_code): ?>
 							<option value="<?= $status_code ?>"
-								<?= $v_redirect_code === $status_code || (empty($v_redirect_code) && $status_code === $v_redirect_code) ? ' selected="selected" ' : "" ?>>
+								<?= trim($v_redirect_code) === $status_code || (empty($v_redirect_code) && $status_code === trim($v_redirect_code)) ? ' selected="selected" ' : "" ?>>
 								<?= $status_code ?>
 							</option>
 							<?php endforeach; ?>