Skip Menu |

This queue is for tickets about the RT-Client-REST CPAN distribution.

Report information
The Basics
Id: 62405
Status: resolved
Priority: 0/
Queue: RT-Client-REST

People
Owner: jlmartinez [...] capside.com
Requestors: RPLESSL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.41
Fixed in: (no value)



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; }
Hello, Can you tell us if this patch is valid for all versions of RT, or if the REST API changed after some specific version of RT?
Subject: Re: [rt.cpan.org #62405] Patch for broken merge function
Date: Mon, 7 Feb 2011 22:41:08 +0100 (CET)
To: Jose Luis Martinez Torres via RT <bug-RT-Client-REST [...] rt.cpan.org>
From: Roman Plessl <rplessl [...] cpan.org>
Hi Jose, I just try, test and patched it with RT 3.8.8. Regards, Roman
Hi, Your patch was applied to RT::Client::REST 0.43. Thanks for contributing. JLMARTIN