6.0.0-beta1
8/11/25

[#6532] multienum attributes produces errors
Summary multienum attributes produces errors
Queue Whups
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester a-dinc (at) hotmail (dot) de
Created 03/28/2008 (6345 days ago)
Due
Updated 06/24/2008 (6257 days ago)
Assigned 04/08/2008 (6334 days ago)
Resolved 06/24/2008 (6257 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/24/2008 05:39:03 PM Jan Schneider Comment #6
Assigned to Jan Schneider
Taken from Horde DevelopersHorde Developers
State ⇒ Resolved
Reply to this comment
Attribute hooks have been removed from Whups, the new attributes code 
should be sufficiently flexible.
04/08/2008 01:16:56 PM Jan Schneider State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
04/06/2008 04:49:17 PM a-dinc (at) hotmail (dot) de New Attachment: hooks.php Download
 
04/06/2008 04:40:21 PM Jan Schneider Comment #5 Reply to this comment
This is not a hook, and not uploaded either.
04/06/2008 04:34:54 PM 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 04:13:29 PM 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 10:12:56 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Can you please upload a *small* example hook?
03/28/2008 04:42:43 PM a-dinc (at) hotmail (dot) de Comment #1
Milestone ⇒
State ⇒ Unconfirmed
Patch ⇒ No
Queue ⇒ Whups
Summary ⇒ multienum attributes produces errors
Type ⇒ Bug
Priority ⇒ 2. Medium
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

Saved Queries