Steve Piercy - Web Site Builder series not acceptable options for field type select?
Jul 18, 2010; 04:28
Steve Piercy - Web Site Builder
series not acceptable options for field type select?
Just stumbled across this error:
Field type select requires -options array or set at: addfield with params: -name='prior_year', -label='Prior Year Played', -type='select', -options=@series: 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -validate=\_global_anonymous
Suggest modifying form.inc:
fail_if: (map: 'select', 'radio', 'checkbox') >> #_type && (local: 'options') -> type != 'array' && (local: 'options') -> type != 'set', -9956, 'Field type ' #_type ' requires -options array or set';
to:
fail_if: (map: 'select', 'radio', 'checkbox') >> #_type && (local: 'options') -> type != 'array' && (local: 'options') -> type != 'set' && (local: 'options') -> type != 'series', -9956, 'Field type ' #_type ' requires -options array, set or series';
Also update the docs a little earlier:
-options (optional) For select, checkbox and radio, must be array or set. For select, the array can contain -optgroup=label to create an optiongroup. \n\
to:
-options (optional) For select, checkbox and radio, must be array, set or series. For select, the array can contain -optgroup=label to create an optiongroup. \n\
Tested and works, but would like independent verification.
--steve
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Steve Piercy Web Site Builder Soquel, CA <web@StevePiercy.com> <http://www.StevePiercy.com/>
-- ############################################################# This message is sent to you because you are subscribed to the mailing list <knop@lists.montania.se>. To unsubscribe, E-mail to: <knop-off@lists.montania.se> Send administrative queries to <knop-request@lists.montania.se> List archive http://www.nabble.com/Knop-Framework-Discussion-f29076.html Project homepage http://montania.se/projects/knop/ Google Code has the latest downloads at http://code.google.com/p/knop/
Jul 20
Johan Solve Re: series not acceptable options for field type select?
Jul 20, 2010; 01:03
Johan Solve
Re: series not acceptable options for field type select?
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!