View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009480 | mantisbt | customization | public | 2008-08-04 11:32 | 2014-11-07 16:32 |
Reporter | northstar | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | acknowledged | Resolution | open | ||
Product Version | 1.2.0a2 | ||||
Summary | 0009480: Manage Config>manage columns - APPLICATION ERROR 0000700 Project '0' not found | ||||
Description | After changing some columns under 'Manage Config>manage columns' and hitting button 'update columns as global default', I get error : Not sure if this has anything to do with the fact that I have deleted the project 'General' earlier on. This project comes supplied with the installation but I do not need it. | ||||
Tags | patch | ||||
Attached Files | 5744.patch (488 bytes)
Index: manage_config_columns_set.php =================================================================== --- manage_config_columns_set.php (revision 5744) +++ manage_config_columns_set.php (working copy) @@ -60,7 +60,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; | ||||
i have the same problem.
i like this way to configure columns. there should be the possibility to set the columns for all projects AND for a selected project |
|
The naming of the button "Update Columns as Global Default for All Projects" is a bit misleading because it does not update the columns for all Projects but only for the active (selected) project (dropdown in the right upper corner). As far as I can see the button "Copy columns to" for a chosen project does not work too - no columns were updated/added when I checked table mantis_config_table afterwards... Workaround: If you need to have columns set for all projects just set project_id in table mantis_config_table to 0 for the required fields... |
|
This issue is marked as resolved many versions ago. I just installed version 1.1.2, created one project, and I got the same error when I tried to manage the configuration. dominik has it right: changing the mantis_config_table to 0 does the trick. I think this needs to be an installation issue, because the config table has a value of 20 in there for some reason right after installation. The error is caused by trying to find a project with id=20, which of course, doesn't exist. Changing the value to 0 or an existing project id makes the problem magically go away. |
|
I investigated this error and found that if ( $f_update_columns_as_my_default ) { This seems to fix it. I don't think there is a relationship between configuration installation variables or DB entries and this issue. |
|
My work-around is to update columns the way I want in another project (I have a test project for playing and things like this), then use "Copy Columns To" to copy to All Projects, then delete the entry for the test project on the "Configuration Report" screen. This way everything is done through the GUI (no touching source code, or manually doing anything to the database). |
|
adding a working patch in the main repository is always better than a known workaround |
|
This is still an issue - i'm just trying to work out from UI + code whether there's a 4th case: i.e. I think at the moment we have: a) user sets settings for themselves for 1 project Point 1: Case C is currently broken Paul |
|
@grangeway: I'm not sure what your question is. Yes, admin can set settings for one project; that's part of my work-around in note 19811, and it works. Which is supposed to take precedence, user's setting for all projects, or admin's setting for specific project? |
|
Paul, I had a problem with case c. It was broken and the patch I posted earlier fixed it. Looking at the code in manage_columns_inc.php I also see that case d is missing. There should be an additional submit button name (in another "if" statement) to show the correct text on the Submit button for case d in manage_columns_inc.php and some code in manage_config_columns_set.php to handle it with elegance. |
|
@olegos: users settings for 1 project That's the meaning of having a default setting and letting your users play with it. |
|
karotos: I'm not sure I agree about precedence. Think about it this way. There is All Projects settings, and a project specific setting. Each one has a global default set by admin, and a user can customize them. So the system looks for project specific setting first, by the user or the admin, then for All Projects one. Makes sense to me. Also, if admin made a setting for one project different than the rest, there is probably a reason why. Maybe there is an important custom field that makes sense to display, or some of the default fields don't apply. Why should a user that customized his All Projects setting lose these project customizations by the admin? The best solution is probably to give each user a choice. Maybe when All Projects is selected, there should be a checkbox for "Override global per-project settings with this one". I also think it's important to show which of the four possible settings is currently being used. |
|
Your patch breaks my functionality. I (as an admin) would like to be able to set the columns at project level for all users. With your patch I only will be able to set the DEFAULT for ALL PROJECTS. What i need is a save button, to save the settings at projectlevel for all users. I dont wont to update the settings for all projects, because my projects may have unique columns. I just want to save actual settings, so why is there no save button?? |
|
Maybee you should change line 209ff as follows, so the administator is able to change the columns for all users for a specific project: <?php if ( $t_manage_page && current_user_is_administrator() ) { ?>
<?php } ?> |
|