# # if(d.step_name and (d.content_type == 'Heading' or d.content_type == 'Description' or d.content_type == 'Caution' or d.content_type == 'Warning' or d.content_type == 'Notice')):
# if not d.content:
# frappe.throw("Content should not be empty" + str(d.content_type))
@ -29,12 +29,13 @@ class SpecialToolInformation(Document):
ifnotself.is_new()andself.published==1:
self.published=0
# if self.instructions:
# for d in self.instructions:
# if(d.step_name and d.content_type == 'Heading' or d.content_type == 'Description' or d.content_type == 'Caution' or d.content_type == 'Warning' or d.content_type == 'Notice'):
# if(d.step_name and (d.content_type == 'Heading' or d.content_type == 'Description' or d.content_type == 'Caution' or d.content_type == 'Warning' or d.content_type == 'Notice')):
ifnotd.content:
frappe.throw("Content should not be empty"+str(d.content_type))