View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009676 | mantisbt | administration | public | 2008-10-07 08:42 | 2009-01-15 11:25 |
Reporter | karotos | Assigned To | jreese | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0a2 | ||||
Fixed in Version | 1.2.0a3 | ||||
Summary | 0009676: The "Inherit Global Categories" checkbox does not work when creating a new project | ||||
Description | The status of the "inherit_global" checkbox is ignored when creating a new project. (it is always being created with inherit_global flag set to true) fixed locally by changing | ||||
Steps To Reproduce |
Check Actual result Expected result | ||||
Additional Information | The bug also exists in latest svn trunk (revision 5632) | ||||
Tags | No tags attached. | ||||
Fixed in SVN trunk, r5633. Thanks for catching this. |
|
OK, checked in latest trunk and it seems fixed. Just for me to understand: why did you set the zero value? $f_inherit_global = gpc_get_bool( 'inherit_global', 0 ); I saw that you also changed tha line under it? |
|
Without the default value of 0, gpc_get_bool() will fail because unchecked input checkboxes result in no form parameter sent to the server, and the call to gpc_get_bool() then errors out saying "required input not entered" or whatever the error message is. It's necessary only for checkboxes just because of the way the HTTP/HTML spec works and how our GPC API works. As for the other line, yes, it was a bug just the same as what you submitted. |
|
MantisBT: master aa928c13 2008-10-07 08:53 Details Diff |
Fix 0009676: Bad default values for category bools when creating projects. git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5633 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9 |
Affected Issues 0009676 |
|
mod - manage_proj_create.php | Diff File |