[Rt-commit] r4708 - in rtfm/branches/2.1-TESTING: .

alexmv at bestpractical.com alexmv at bestpractical.com
Wed Mar 8 13:25:14 EST 2006


Author: alexmv
Date: Wed Mar  8 13:25:14 2006
New Revision: 4708

Modified:
   rtfm/branches/2.1-TESTING/   (props changed)
   rtfm/branches/2.1-TESTING/html/Admin/RTFM/Classes/Modify.html

Log:
 r8446 at zoq-fot-pik:  chmrr | 2006-03-08 13:24:59 -0500
  * Fix update code


Modified: rtfm/branches/2.1-TESTING/html/Admin/RTFM/Classes/Modify.html
==============================================================================
--- rtfm/branches/2.1-TESTING/html/Admin/RTFM/Classes/Modify.html	(original)
+++ rtfm/branches/2.1-TESTING/html/Admin/RTFM/Classes/Modify.html	Wed Mar  8 13:25:14 2006
@@ -101,9 +101,11 @@
 my $cfs = $ClassObj->ArticleCustomFields;
 $include{"CF-Title-".$_->Id} = $include{"CF-Value-".$_->Id} = 1 while $_ = $cfs->Next;
 
-if  ( ($Submitted) and ( $Disabled != $ClassObj->Disabled) ) { 
-    my  ($code, $msg) = $ClassObj->SetDisabled($Disabled);
-    push @results, loc('Enabled status [_1]', loc_fuzzy($msg));
+if  ( $Submitted ) {
+    if ( $Disabled != $ClassObj->Disabled) {
+        my  ($code, $msg) = $ClassObj->SetDisabled($Disabled);
+        push @results, loc('Enabled status [_1]', loc_fuzzy($msg));
+    }
 
     for (keys %include) {
         if ($ARGS{"Include-$_"}) {


More information about the Rt-commit mailing list