View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0013699 | mantisbt | customization | public | 2011-12-28 11:05 | 2014-12-08 00:33 |
Reporter | M.C.S. | Assigned To | vboctor | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.8 | ||||
Target Version | 1.3.0-beta.1 | Fixed in Version | 1.3.0-beta.1 | ||
Summary | 0013699: Changing columns for single projects | ||||
Description | NB: I would have repoened 0009439 but it was not possible for me (access denied). There is still no button like "set for current project" (Mantis 1.2.8). The "Manage Columns" view just allows setting global column definitions, but not for a single project. This seems to be possible only when using the "Configuration report" and there passing in the changed values :-/ | ||||
Steps To Reproduce |
| ||||
Tags | patch | ||||
Attached Files | issue_13699_fix.patch (2,026 bytes)
From 9c99f806d1f39843f3f152ee94798e7e9065f253 Mon Sep 17 00:00:00 2001 From: lukaszkujawa <lukasz.f24@gmail.com> Date: Thu, 20 Sep 2012 13:17:15 +0100 Subject: [PATCH] issue #13699 --- manage_columns_inc.php | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) mode change 100644 => 100755 manage_columns_inc.php diff --git a/manage_columns_inc.php b/manage_columns_inc.php old mode 100644 new mode 100755 index d79b556..9640b5b --- a/manage_columns_inc.php +++ b/manage_columns_inc.php @@ -121,13 +121,17 @@ $t_excel = implode( ', ', $t_columns ); <span class="submit-button"><input <?php echo helper_get_tab_index() ?> type="submit" class="button" name="update_columns_as_my_default" value="<?php echo lang_get( 'update_columns_as_my_default' ) ?>" /></span><?php } else { ?> <span class="submit-button"><input <?php echo helper_get_tab_index() ?> type="submit" class="button" name="update_columns_for_current_project" value="<?php echo lang_get( 'update_columns_for_current_project' ) ?>" /></span><?php - } } - if ( $t_manage_page && current_user_is_administrator() ) { ?> - <span class="submit-button"><input <?php echo helper_get_tab_index() ?> type="submit" class="button" name="update_columns_as_global_default" value="<?php echo lang_get( 'update_columns_as_global_default' ) ?>" /></span><?php - } ?> + if ( $t_manage_page && current_user_is_administrator() ) { + if ( $t_project_id == ALL_PROJECTS ) { ?> + <span class="submit-button"><input <?php echo helper_get_tab_index() ?> type="submit" class="button" name="update_columns_as_global_default" value="<?php echo lang_get( 'update_columns_as_global_default' ) ?>" /></span> + <?php }else{ ?> + <span class="submit-button"><input <?php echo helper_get_tab_index() ?> type="submit" class="button" name="update_columns_for_current_project_default" value="<?php echo lang_get( 'update_columns_for_current_project' ) ?>" /></span> + <?php } + + } ?> </fieldset> </form> </div> -- 1.7.4.1 | ||||
Issue fix attached. I made it work in the same way as on the account page. |
|
Thanks Lukasz, looks good. Will try to have this committed shortly (please nag me if I forget). |
|
Removed assignment. dhx will not contribute to this issue in near future. |
|
Pull request with slightly different patch at: |
|
MantisBT: master a9f5b923 2014-10-31 18:40 Details Diff |
Changing columns for single projects - Simply manage columns access checks/form paramters - Set user id to NO USER when in Manage - Manage Columns and Logged in User when in My Account - Manage Columns. - Allow user to set columns for all / current project based on active project. Fixes 0013699 |
Affected Issues 0013699 |
|
mod - manage_columns_inc.php | Diff File | ||
mod - manage_config_columns_set.php | Diff File |