You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just discovered a significant behaviour difference between options methods on Select fields, depending on how they are declared:
has_field foo => (
type => 'Select',
options_method => sub { ... }, # receives one argument: ($field)
);
has_field bar => (
type => 'Select',
);
sub options_bar { ... } # receives two arguments: ($form, $field)
This causes interesting failures when moving a sub from one style to the other.
It doesn't look like the documentation describes what is passed in either case.
The text was updated successfully, but these errors were encountered:
karenetheridge
changed the title
options method on Select fields receives inconsistent, undocument arguments
options method on Select fields receives inconsistent, undocumented arguments
Nov 2, 2016
I just discovered a significant behaviour difference between options methods on Select fields, depending on how they are declared:
This causes interesting failures when moving a sub from one style to the other.
It doesn't look like the documentation describes what is passed in either case.
The text was updated successfully, but these errors were encountered: