[Tickets #13011] Re: Calling updateTicket via API not working

noreply at bugs.horde.org noreply at bugs.horde.org
Wed Mar 5 10:24:00 UTC 2014


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/13011
------------------------------------------------------------------------------
  Ticket             | 13011
  Updated By         | geiger at b1-systems.de <geiger at b1-systems.de>
  Summary            | Calling updateTicket via API not working
  Queue              | Whups
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


geiger at b1-systems.de (2014-03-05 10:15) wrote:

I'm currently trying to update the status of a ticket through the given API.

The call fires as follows:
$this->registry->call('tickets/updateTicket', array($ticket_id,  
array('state' => '1', 'due' => $date)));

The script then dies due to this error:
PHP Fatal error:  Cannot pass parameter 2 by reference in  
/srv/git/horde/whups/lib/Api.php on line 231.

While investigating and tracing the bug I've discovered, that the  
parameter "null" as passed on line 231:
$editform = new Whups_Form_Ticket_Edit($vars, null, $ticket);
is not correct. I've tried adjusting this by changing the call to  
($vars, $ticket, null), which solves this problem, but comes up with  
the next one.

Line 251: $whups_driver->setAttributes($info);
this calles Whups_Driver::setAttributes and passes only one parameter,  
but expects two. Adjusting this also does not solve the problem, but  
I'm not able to track it beyond this.

It would be great if someone can confirm and fix this bug.

Thanks!





More information about the bugs mailing list