[Rt-commit] r8952 - in rt/branches/3.999-DANGEROUS/lib: RT/Model

jesse at bestpractical.com jesse at bestpractical.com
Thu Sep 6 14:53:16 EDT 2007


Author: jesse
Date: Thu Sep  6 14:53:14 2007
New Revision: 8952

Removed:
   rt/branches/3.999-DANGEROUS/lib/t/data/shredder/03plugin_tickets.log
Modified:
   rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm

Log:
* Fixing a JDBI incompatibility

Modified: rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/Model/Ticket.pm	Thu Sep  6 14:53:14 2007
@@ -3247,7 +3247,11 @@
     #Take care of the old value we really don't want to get in an ACL loop.
     # so ask the super::_value
     my $Old = $self->SUPER::_value($args{'column'});
-    
+   
+    if ($Old && $args{'value'} && $Old eq $args{'value'}) {
+
+        return (0, $self->loc("That is already the current value"));
+    }
     my ($return);
     if ( $args{'UpdateTicket'}  ) {
 


More information about the Rt-commit mailing list