Mantis Bug Tracker
 

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010411mantisbtbugtrackerpublic2009-04-27 05:372009-05-18 09:18
Reporterpaontis 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version1.2.0a3 
Target VersionFixed in Version 
Summary0010411: Changes to project_view_state and view_state to create only private projects
DescriptionI needed to create only private projects and forbid to create public projects.
I saw in config_defaults_inc.php the following:
$g_project_view_state_enum_string = '10:public,50:private';
So in config_inc.php i put:
$g_project_view_state_enum_string = '50:private';

However in the code sometime it is used view_state where I expected to find project_view_state and viceversa.
So i did the following changes:

In manage_proj_create_page.php i changed:
<?php print_enum_string_option_list( 'view_state' ) ?>
to:
<?php print_enum_string_option_list( 'project_view_state' ) ?>

In manage_proj_edit_page.php i changed:
<?php print_enum_string_option_list( 'view_state', $row['view_state']) ?>
to:
<?php print_enum_string_option_list( 'project_view_state', $row['view_state']) ?>

In manage_proj_page.php i changed:
<?php echo get_enum_element( 'view_state', $t_project['view_state'] ) ?>
to:
<?php echo get_enum_element( 'project_view_state', $t_project['view_state'] ) ?>

And, viceversa, in bug_view_page.php and bug_view_advanced_page.php i changed:
<?php echo get_enum_element( 'project_view_state', $t_bug->view_state ) ?>
to:
<?php echo get_enum_element( 'view_state', $t_bug->view_state ) ?>

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0021831)
paontis (reporter)
2009-05-18 09:18

the same for bug_view_inc.php (included for example in the page bug_reminder_page.php):
change
   <?php echo get_enum_element( 'project_view_state', $t_bug->view_state ) ?>
to
   <?php echo get_enum_element( 'view_state', $t_bug->view_state ) ?>

- Issue History
Date Modified Username Field Change
2009-04-27 05:37 paontis New Issue
2009-05-18 09:18 paontis Note Added: 0021831


MantisBT 1.2.2 git master-1.2.x[^]
Copyright © 2000 - 2010 MantisBT Group
Time: 0.1880 seconds.
memory usage: 1,926 KB
Powered by Mantis Bugtracker