Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fatal MySQL error when saving Channel settings with no Channel Form default author #124
Description of the problem
It looks like this can only occur if you have enough authors in the authorlist to engage the React list component, and never saved the Channel's settings before that occurred. The non-React lists will select the first option, and save a default author to the Channel's settings, even if not used. The React component does not force a selection however, so it submits with an empty string, an the resulting invalid value for an integer column in MySQL.
How To Reproduce
referenced this issue
Mar 10, 2019
It's only used if they are using channel form and allow guest authors, so seems to me that the field shouldn't be present in the form unless allow guest authors is toggled. In that case, form validation could get it, but there's no cue to the admin of why that list is empty and how to fix it.
Perhaps for now if the list is empty, we could force a