[Rt-commit] r7460 - in rt/branches/3.7-EXPERIMENTAL: . html/Widgets/Form

ruz at bestpractical.com ruz at bestpractical.com
Wed Apr 4 17:53:25 EDT 2007


Author: ruz
Date: Wed Apr  4 17:53:24 2007
New Revision: 7460

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/html/Prefs/Other.html
   rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Boolean
   rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Integer
   rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Select

Log:
 r4893 at cubic-pc:  cubic | 2007-04-04 17:39:16 +0400
 * in Widget/Form/*:Process rename CurrenValue argument to DefaultValue,
   as old one is really confusing


Modified: rt/branches/3.7-EXPERIMENTAL/html/Prefs/Other.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Prefs/Other.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Prefs/Other.html	Wed Apr  4 17:53:24 2007
@@ -38,8 +38,7 @@
             Empty        => 1,
             %{ $meta->{'WidgetArguments'} },
             Name         => $option,
-            EmptyValue   => scalar RT->Config->Get( $option ),
-            CurrentValue => $preferences->{ $option },
+            DefaultValue => scalar RT->Config->Get( $option ),
         );
         if ( defined $value ) {
             $preferences->{ $option } = $value;

Modified: rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Boolean
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Boolean	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Boolean	Wed Apr  4 17:53:24 2007
@@ -36,7 +36,7 @@
 
 $Name         => undef,
 $Empty        => 0,
-$CurrentValue => 0,
+$DefaultValue => 0,
 </%ARGS>
 <%INIT>
 my $value = $Arguments->{ $Name };
@@ -45,7 +45,7 @@
     return $value? 1: 0;
 } else {
     return $value? 1: 0 if defined $value;
-    return $CurrentValue;
+    return $DefaultValue;
 }
 </%INIT>
 </%METHOD>

Modified: rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Integer
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Integer	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Integer	Wed Apr  4 17:53:24 2007
@@ -33,13 +33,13 @@
 
 $Arguments    => {},
 
-$CurrentValue => '',
+$DefaultValue => '',
 $Empty        => 0,
 </%ARGS>
 <%INIT>
 my $value = $Arguments->{ $Name };
 if ( !defined $value || $value eq '' ) {
-    return $CurrentValue unless $Empty;
+    return $DefaultValue unless $Empty;
     return undef;
 }
 return $value;

Modified: rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Select
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Select	(original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Widgets/Form/Select	Wed Apr  4 17:53:24 2007
@@ -78,7 +78,7 @@
 
 @Values           => (),
 %ValuesLabel      => (),
- at CurrentValue     => (),
+ at DefaultValue     => (),
 
 $Empty            => 1,
 $Alternative      => 0,
@@ -88,8 +88,8 @@
 my $value = $Arguments->{ $Name };
 if( !defined $value || $value eq '__empty_value__' ) {
     return undef if $Empty;
-    return [ @CurrentValue ] if $Multiple;
-    return $CurrentValue[0];
+    return [ @DefaultValue ] if $Multiple;
+    return $DefaultValue[0];
 }
 $value = [$value] unless ref $value;
 


More information about the Rt-commit mailing list