[Rt-commit] r3891 - in Jifty-DBI/trunk: . lib/Jifty/DBI

jesse at bestpractical.com jesse at bestpractical.com
Sun Sep 25 15:41:56 EDT 2005


Author: jesse
Date: Sun Sep 25 15:41:56 2005
New Revision: 3891

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/Changes
   Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm
Log:
 r15996 at hualien:  jesse | 2005-09-25 15:41:20 -0400
 
 
 * __set no longer returns failure when you try to apply a change that's already 
   the current value
 


Modified: Jifty-DBI/trunk/Changes
==============================================================================
--- Jifty-DBI/trunk/Changes	(original)
+++ Jifty-DBI/trunk/Changes	Sun Sep 25 15:41:56 2005
@@ -1,5 +1,11 @@
 Revision history for Perl extension Jifty::DBI.
 
+
+* __set no longer returns failure when you try to apply a change that's already 
+  the current value
+
+
+
 ==> Forked into Jifty::DBI
 
 *  Removed {{{ and  }}} fold markers. Patch from Ruslan

Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm	Sun Sep 25 15:41:56 2005
@@ -735,12 +735,7 @@
 	if( ( !defined $args{'value'} && !defined $self->{'values'}{$column->name} ) ||
 	    ( defined $args{'value'} && defined $self->{'values'}{$column->name} &&
 	      $args{'value'} eq $self->{'values'}{$column->name} ) ) {
-            $ret->as_array( 0, "That is already the current value" );
-            $ret->as_error(
-                errno        => 1,
-                do_backtrace => 0,
-                message      => "That is already the current value"
-            );
+            $ret->as_array( 1, "That is already the current value" );
             return ( $ret->return_value );
 	}
     }


More information about the Rt-commit mailing list