6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11124] decode_attribute hook an exceptions
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..___..___ __..__ | | _/ [__ (__ | \ |__|./__.| .__)|__/
Comment
>> The purpose of the hook *is* to be called for any attribute. I don't >> understand what you trying to achieve, besides that it would break >> the intended behavior. > hmm, > i have a personal adressbook 'localsql' (nothing special, mainly the > sample code) and > a global LDAP adressbook 'localldap'. Now i have no field for e.g. ' > freebusyUrl' in LDAP. > So i started with: > class Turba_Hooks > { > public function decode_attribute($attribute, $value, $contact) > { > switch ($attribute) { > case 'freebusyUrl': > .... > return $url; > } > return $value; > } > } > Now I have 'freebusyUrl' in 'localldap', but magically lost all > pictures in 'localsql'. > To get the pictures in 'localsql' back, i have to throw an exception > instead of the > default passthrough 'return $value'. > Now it works as expected, but i have tons of "No decode handler" > errors in the Logs. > What I'm doing wrong here?
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