Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handling for custom fields sequence numbers through the manage pr…
…oject edit page. A manage_proj_custom_field_update.php - Action page for setting the sequence number for the custom fields. M manage_proj_edit_page.php - Displayed an edit box with the sequence number and add an update button next to each one to allow the manager to update the sequence numbers. M core/custom_field_api.php - (custom_field_get_sequence): Gets the sequence number for the specified field in the specified project. - (custom_field_set_sequence): Sets the sequence number for the specified field in the specified project. - (custom_field_get_linked_ids): Added sorting by field name as a secondary key after sequence number. M lang/strings_english.txt - Added caption for the update button. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1845 f5dc347c-c33d-0410-90a0-b07cc1902cb9
- Loading branch information
Showing
4 changed files
with
104 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
# Mantis - a php based bugtracking system | ||
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org | ||
# Copyright (C) 2002 - 2003 Mantis Team - mantisbt-dev@lists.sourceforge.net | ||
# This program is distributed under the terms and conditions of the GPL | ||
# See the README and LICENSE files for details | ||
?> | ||
<?php | ||
require_once( 'core.php' ); | ||
|
||
$t_core_path = config_get( 'core_path' ); | ||
|
||
require_once( $t_core_path.'custom_field_api.php' ); | ||
?> | ||
<?php | ||
$f_field_id = gpc_get_int( 'field_id' ); | ||
$f_project_id = gpc_get_int( 'project_id' ); | ||
$f_sequence = gpc_get_int( 'sequence' ); | ||
|
||
# We should check both since we are in the project section and an | ||
# admin might raise the first threshold and not realize they need | ||
# to raise the second | ||
access_ensure_project_level( config_get( 'manage_project_threshold' ), $f_project_id ); | ||
access_ensure_project_level( config_get( 'custom_field_link_threshold' ), $f_project_id ); | ||
|
||
custom_field_set_sequence( $f_field_id, $f_project_id, $f_sequence ); | ||
|
||
$t_redirect_url = 'manage_proj_edit_page.php?project_id=' . $f_project_id; | ||
?> | ||
<?php print_page_top1() ?> | ||
<?php | ||
print_meta_redirect( $t_redirect_url ); | ||
?> | ||
<?php print_page_top2() ?> | ||
|
||
<br /> | ||
<div align="center"> | ||
<?php | ||
echo lang_get( 'operation_successful' ).'<br />'; | ||
|
||
print_bracket_link( $t_redirect_url, lang_get( 'proceed' ) ); | ||
?> | ||
</div> | ||
|
||
<?php print_page_bot1( __FILE__ ) ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters