Mailing List Archive

rt branch, 4.4/fix-shredder-scrip-removal, created. rt-4.4.4-45-g7d5502ffe
The branch, 4.4/fix-shredder-scrip-removal has been created
at 7d5502ffe1a4ee0be0d7854dbfef966c36150f36 (commit)

- Log -----------------------------------------------------------------
commit 7d5502ffe1a4ee0be0d7854dbfef966c36150f36
Author: Blaine Motsinger <blaine@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

-----------------------------------------------------------------------
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit