Parcourir la source

Fix bug where template is not re-selected on project form

Alan Lam il y a 8 ans
Parent
commit
0dd0fc57d7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      views/project_form.php

+ 1 - 1
views/project_form.php

@@ -47,7 +47,7 @@ $time_of_day_options = [
 						foreach($templates as $template) {
 							$selected = ($template->id == $project->template_id) ? "selected" : "";
 							?>
-							<option value="<?=$template->id?>"><?=htmlspecialchars($template->name)?></option>
+							<option value="<?=$template->id?>" <?=$selected?>><?=htmlspecialchars($template->name)?></option>
 							<?php
 						}
 						?>