- Timestamp:
- 28 Aug 2020, 06:48:35 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r16215 r16217 1112 1112 fields appear in the form. 1113 1113 """ 1114 return changed_fields 1114 error = None 1115 return error, changed_fields 1115 1116 1116 1117 @action(_('Save'), style='primary') … … 1134 1135 else: 1135 1136 changed_fields = [] 1136 changed_fields = self.saveCourses(changed_fields) 1137 error, changed_fields = self.saveCourses(changed_fields) 1138 if error: 1139 self.flash(error) 1140 return 1137 1141 if password: 1138 1142 # Now we know that the form has no errors and can set password ... … … 1306 1310 return 1307 1311 self.applyData(self.context, **data) 1308 self.saveCourses() 1312 error = self.saveCourses() 1313 if error: 1314 self.flash(error) 1315 return 1309 1316 self.flash(_('Form has been saved.')) 1310 1317 return
Note: See TracChangeset for help on using the changeset viewer.