Subject: | Patch for broken merge function |
The merge function in RT-Client-REST is nonfunctional. I have created the
attached patch for fixing this.
Could you add that to the mainline?
Thanks and Best Regards,
Roman
Subject: | RT-Client-REST-0.41_fix_merge.patch |
Fix RT Merge feature to working system ... implemented like in the rt command
line tool ('rt')
- Roman Plessl, rplessl@cpan.org
diff -Naur RT-Client-REST-0.41.orig/lib/RT/Client/REST.pm RT-Client-REST-0.41/lib/RT/Client/REST.pm
--- RT-Client-REST-0.41.orig/lib/RT/Client/REST.pm 2010-07-06 10:22:31.000000000 +0200
+++ RT-Client-REST-0.41/lib/RT/Client/REST.pm 2010-10-23 16:28:34.000000000 +0200
@@ -371,7 +371,7 @@
my %opts = @_;
my ($src, $dst) = map { $self->_valid_numeric_object_id($_) }
@opts{qw(src dst)};
- $self->_submit("ticket/merge/$src", { into => $dst});
+ $self->_submit("ticket/$src/merge/$dst");
return;
}