Skip to content

Commit

Permalink
Fix #10632: cannot update columns global defaults
Browse files Browse the repository at this point in the history
The following error occured when an administrator tried to update the
global defaults for column display via manage_config_columns_page:

Application error #700: Project "0" not found.

This was caused by incorrectly validating the project ID for
ALL_PROJECTS.
  • Loading branch information
davidhicks committed Jul 1, 2009
1 parent 941a82c commit af99051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manage_config_columns_set.php
Expand Up @@ -57,7 +57,7 @@
access_ensure_project_level( VIEWER, $f_project_id );
}

if ( $f_update_columns_as_my_default ) {
if ( $f_update_columns_as_my_default || $f_update_columns_as_global_default ) {
$t_project_id = ALL_PROJECTS;
} else {
$t_project_id = $f_project_id;
Expand Down Expand Up @@ -110,4 +110,4 @@
</div>

<?php
html_page_bottom( __FILE__ );
html_page_bottom( __FILE__ );

0 comments on commit af99051

Please sign in to comment.