6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/8/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#13011] Calling updateTicket via API not working
*
Your Email Address
*
Spam protection
Enter the letters below:
.___. .. .__ __. [__ | || [__)(__ [___|/\||___| .__)
Comment
> 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!
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers