Skip to content

Commit

Permalink
Use empty default selection for project list.
Browse files Browse the repository at this point in the history
Use a default empty value in the project list in manage project page,
subprojects section. This is the same behavior as the other project
selectors.

Fixes: #26367
  • Loading branch information
cproensa authored and dregad committed Nov 23, 2019
1 parent baebf92 commit 1c65da7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manage_proj_edit_page.php
Expand Up @@ -254,7 +254,8 @@
<fieldset>
<?php echo form_security_field( 'manage_proj_subproj_add' ) ?>
<input type="hidden" name="project_id" value="<?php echo $f_project_id ?>" />
<select name="subproject_id" class="input-sm"><?php
<select name="subproject_id" class="input-sm" required>
<option selected disabled value=""><?php echo '[', lang_get( 'select_project_button' ), ']' ?></option><?php
$t_all_subprojects = project_hierarchy_get_subprojects( $f_project_id, true );
$t_all_subprojects[] = $f_project_id;
$t_manage_access = config_get( 'manage_project_threshold' );
Expand Down

0 comments on commit 1c65da7

Please sign in to comment.