6.0.0-beta1
7/26/25

[#4417] values are not passed through _turba_hook_encode_...
Summary values are not passed through _turba_hook_encode_...
Queue Turba
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester tinu (at) humbapa (dot) ch
Created 09/13/2006 (6891 days ago)
Due
Updated 09/17/2006 (6887 days ago)
Assigned 09/17/2006 (6887 days ago)
Resolved 09/17/2006 (6887 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
09/17/2006 06:12:02 AM Chuck Hagenbuch Comment #5
State ⇒ Resolved
Reply to this comment
Committed, thanks.
09/17/2006 12:28:42 AM Chuck Hagenbuch Assigned to Chuck Hagenbuch
State ⇒ Assigned
 
09/15/2006 04:58:31 PM tinu (at) humbapa (dot) ch Comment #4
New Attachment: add.php.patch Download
Reply to this comment
this patch works for me.



thanks!

tinu
09/14/2006 05:04:48 PM tinu (at) humbapa (dot) ch Comment #3 Reply to this comment
The values are also not passed through the hooks when adding a new 
entry (add.php).



I tried to replace (add.php, line 97):

$object = $info['object'];

with:

foreach ($info['object'] as $info_key => $info_val) {

     $object->setValue($info_key, $info_val);

}

and $driver->add($object) with $object->store()

when I submit the form the site changes to browse.php but the new 
entry is missing.



thanks!

tinu
09/13/2006 10:04:42 PM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
That looks exactly right. Fixed in HEAD as well as FW_3, thanks!
09/13/2006 01:15:55 PM tinu (at) humbapa (dot) ch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ values are not passed through _turba_hook_encode_...
Queue ⇒ Turba
New Attachment: edit.php.patch Download
State ⇒ Unconfirmed
Reply to this comment
Values are not passed through the _turba_hook_encode_* functions when 
editing an exisiting entry.



the attached patch works for me. But I'm not quite sure if this is the 
proper place to do this... :-)



thanks!

tinu

Saved Queries