We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6361da9 commit a9be8fbCopy full SHA for a9be8fb
src/invenflask/app.py
@@ -184,6 +184,8 @@ def staff_create():
184
flash('Missing Name information')
185
elif not staff_title:
186
flash('Missing Staff Title')
187
+ elif staff_id == get_staff(staff_id)['id']:
188
+ flash('Staff ID already exists. Try again.')
189
else:
190
# if auto_gen == 'on':
191
# last_staff = conn.execute(
0 commit comments