[dev] Turba problem with 'enum' attribute and posible fix
Chuck Hagenbuch
chuck at horde.org
Tue Jun 17 10:40:26 PDT 2003
Quoting Sebastian Calero Laguia <scalero at datadec.es>:
> In the file "horde/lib/Form.php" (class Horde_Form) the function
> "&getType" calls internally the php function 'call_user_func_array'
> passing the variable "$params". The function 'call_user_func_array' is
> stripping the array and passing its elements. In the case of 'enum' and
> possibly 'multienum' this is incorrect and we should pass a array in the
> $params variable, not?
No, you should be passing in an array containing an array. Doing it
otherwise would make code that automatically builds forms very hard to
handle.
-chuck
--
Charles Hagenbuch, <chuck at horde.org>
The alligators were there, too, in a bathtub inside the house.
More information about the dev
mailing list