04/27 Fixed start inspection error

This commit is contained in:
2026-04-27 14:18:50 -04:00
parent ebddf70f48
commit 7ecb575ddf
+2 -2
View File
@@ -248,8 +248,8 @@ def start():
if form.validate_on_submit():
template = db.session.get(InspectionTemplate, form.template_id.data)
if template is None:
abort(404)
if template is None:
abort(404)
if not template.get_form_schema():
flash('This template has no form fields yet. Please build the form in the template editor first.', 'warning')