[Rt-commit] r10272 - in rt/branches/3.6-EXPERIMENTAL-CATEGORIES:
html/Admin/CustomFields
falcone at bestpractical.com
falcone at bestpractical.com
Wed Jan 9 10:06:38 EST 2008
Author: falcone
Date: Wed Jan 9 10:06:37 2008
New Revision: 10272
Modified:
rt/branches/3.6-EXPERIMENTAL-CATEGORIES/ (props changed)
rt/branches/3.6-EXPERIMENTAL-CATEGORIES/html/Admin/CustomFields/Modify.html
Log:
r28130 at ketch: falcone | 2008-01-04 12:09:10 -0500
* fix a bug where we nuke all your categories and sort orders on page load
make sure you submitted an empty hash entry
Modified: rt/branches/3.6-EXPERIMENTAL-CATEGORIES/html/Admin/CustomFields/Modify.html
==============================================================================
--- rt/branches/3.6-EXPERIMENTAL-CATEGORIES/html/Admin/CustomFields/Modify.html (original)
+++ rt/branches/3.6-EXPERIMENTAL-CATEGORIES/html/Admin/CustomFields/Modify.html Wed Jan 9 10:06:37 2008
@@ -225,7 +225,7 @@
# you shouldn't be doing that to Name
foreach my $attr qw(Description SortOrder Category) {
my $param = $paramtag.$value->Id."-".$attr;
- if ( !$ARGS{$param} && $value->$attr ) {
+ if ( exists $ARGS{$param} && !$ARGS{$param} && $value->$attr ) {
my $mutator = "Set$attr";
if ($attr eq 'Category') { # we actually want the Attribute to go away
$mutator = "DeleteCategory";
More information about the Rt-commit
mailing list