[Rt-commit] r5702 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Sun Aug 6 23:02:01 EDT 2006


Author: ruz
Date: Sun Aug  6 23:01:59 2006
New Revision: 5702

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder/Plugin/Base.pm

Log:
 r3598 at cubic-pc:  cubic | 2006-08-07 07:01:33 +0400
 * as options can be filled via new then in TestArgs method make a sum
   instead of replacing


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder/Plugin/Base.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder/Plugin/Base.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder/Plugin/Base.pm	Sun Aug  6 23:01:59 2006
@@ -97,7 +97,11 @@
 {
     my $self = shift;
     my %args = @_;
-    $self->{'opt'} = \%args;
+    if ( $self->{'opt'} ) {
+        $self->{'opt'} = { %{$self->{'opt'}}, %args };
+    } else {
+        $self->{'opt'} = \%args;
+    }
     return 1;
 }
 


More information about the Rt-commit mailing list