[Rt-commit] rt branch, 4.4/fix-shredder-scrip-removal, created. rt-4.4.4-45-g7d5502ffe

Blaine Motsinger blaine at bestpractical.com
Fri Jun 7 19:17:16 EDT 2019


The branch, 4.4/fix-shredder-scrip-removal has been created
        at  7d5502ffe1a4ee0be0d7854dbfef966c36150f36 (commit)

- Log -----------------------------------------------------------------
commit 7d5502ffe1a4ee0be0d7854dbfef966c36150f36
Author: Blaine Motsinger <blaine at bestpractical.com>
Date:   Fri Jun 7 17:48:41 2019 -0500

    Fix removal of scrips when shredding queues
    
    Instead of removing the scrip itself, shredder now correctly deletes
    the associated ObjectScrips entry.

diff --git a/lib/RT/Queue.pm b/lib/RT/Queue.pm
index bd486ae9c..bb7feebe0 100644
--- a/lib/RT/Queue.pm
+++ b/lib/RT/Queue.pm
@@ -1122,8 +1122,8 @@ sub __DependsOn {
     push( @$list, $objs );
 
 # Scrips
-    $objs = RT::Scrips->new( $self->CurrentUser );
-    $objs->LimitToQueue( $self->id );
+    $objs = RT::ObjectScrips->new( $self->CurrentUser );
+    $objs->LimitToObjectId( $self->id );
     push( @$list, $objs );
 
 # Templates

-----------------------------------------------------------------------


More information about the rt-commit mailing list