Expected behavior:
When creating a new allergen in single restruant mode, the default restruant should be used without showing a location select field.
Actual behavior:
When creating an allergen via the /admin/allergens/create view, you can provide a name and description, but when the form is submitted it errors out saying "The locations field is required.". A location dropdown is not displayed, I'm assuming because the application is in single restruant mode.
Reproduce steps:
Whilst in single restruant mode, try to create an allergen under the /admin/allergens/create page. Enter the required information to pass validation, and it will fail saying a location is required, even though no location field is prompted, in which I'm assuming is because the app recognises that it's in single location mode.
Expected behavior: When creating a new allergen in single restruant mode, the default restruant should be used without showing a location select field.
Actual behavior: When creating an allergen via the
/admin/allergens/create
view, you can provide a name and description, but when the form is submitted it errors out saying "The locations field is required.". A location dropdown is not displayed, I'm assuming because the application is in single restruant mode.Reproduce steps: Whilst in single restruant mode, try to create an allergen under the
/admin/allergens/create
page. Enter the required information to pass validation, and it will fail saying a location is required, even though no location field is prompted, in which I'm assuming is because the app recognises that it's in single location mode.Version: v3.0.4-beta.27
Additional Information: None.