Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

504 bug on empty array in field options #20

Open
rizen opened this issue Feb 14, 2018 · 0 comments
Open

504 bug on empty array in field options #20

rizen opened this issue Feb 14, 2018 · 0 comments

Comments

@rizen
Copy link
Member

rizen commented Feb 14, 2018

__PACKAGE__->wing_fields(
some_field => {
  dbic => ..
 ...
  options => sub { return [] },
},
);

Passing a sub ref to options, which then ultimately returns an empty array causes a 504 error. It's bad for it to return an empty array anyway. It should never be done. But even so, it should not be a 504 error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant