[#6532] multienum attributes produces errors
Summary multienum attributes produces errors
Queue Whups
Type Bug
State Resolved
Priority 2. Medium
Owners Jan Schneider <jan (at) horde (dot) org>
Requester a-dinc (at) hotmail (dot) de
Created 03/28/2008 (146 days ago)
Due
Updated 06/24/2008 (58 days ago)
Assigned 04/08/2008 (135 days ago)
Resolved 06/24/2008 (58 days ago)
Attachments hooks.php Download
Milestone
Patch No

History
06/24/2008 Jan Schneider Comment #6
State ⇒ Resolved
Taken from Horde DevelopersHorde Developers
Assigned to Jan Schneider
Reply to this comment
Attribute hooks have been removed from Whups, the new attributes code 
should be sufficiently flexible.
04/08/2008 Jan Schneider State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
04/06/2008 a-dinc (at) hotmail (dot) de New Attachment: hooks.php Download
 
04/06/2008 Jan Schneider Comment #5 Reply to this comment
This is not a hook, and not uploaded either.
04/06/2008 a-dinc (at) hotmail (dot) de Comment #4 Reply to this comment
the attribute in comment 3 produces the below error when the form is 
viewed. editing works ok.

Warning: in_array() [function.in-array]: Wrong datatype for second 
argument in /usr/share/php/Horde/UI/VarRenderer/html.php on line 1085

Warning: in_array() [function.in-array]: Wrong datatype for second 
argument in /usr/share/php/Horde/UI/VarRenderer/html.php on line 1085

Warning: in_array() [function.in-array]: Wrong datatype for second 
argument in /usr/share/php/Horde/UI/VarRenderer/html.php on line 1085

04/06/2008 a-dinc (at) hotmail (dot) de Comment #3 Reply to this comment
Can you please upload a *small* example hook?
sure:

          'customer_type' => array('human_name' => 'Customer Type',
                                   'type'       => 'multienum',
                                   'required'   => false,
                                   'readonly'   => false,
                                   'desc'       => null,
                                   'params'     => array(array('1' => 'Billed',
                                                               '2' => 
'Contracted',
                                                               '3' => 
'Written')))


04/04/2008 Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Can you please upload a *small* example hook?
03/28/2008 a-dinc (at) hotmail (dot) de Comment #1
Patch ⇒
Milestone ⇒
Queue ⇒ Whups
Summary ⇒ multienum attributes produces errors
Type ⇒ Bug
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Reply to this comment
when multienum fields are used as external attribute in the hooks.php
every enum value produces the following error when ticket is displayed:

Warning: in_array() [function.in-array]: Wrong datatype for second 
argument in /usr/share/php/Horde/UI/VarRenderer/html.php on line 1085