04/27 Fixed start inspection error
This commit is contained in:
@@ -248,8 +248,8 @@ def start():
|
|||||||
|
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
template = db.session.get(InspectionTemplate, form.template_id.data)
|
template = db.session.get(InspectionTemplate, form.template_id.data)
|
||||||
if template is None:
|
if template is None:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
if not template.get_form_schema():
|
if not template.get_form_schema():
|
||||||
flash('This template has no form fields yet. Please build the form in the template editor first.', 'warning')
|
flash('This template has no form fields yet. Please build the form in the template editor first.', 'warning')
|
||||||
|
|||||||
Reference in New Issue
Block a user