Commit 53520666 by François C.

Fix wrong parameter in CagetteService._process_related_shift_registrations

parent 5575d2f8
Pipeline #2339 passed with stage
in 1 minute 26 seconds
...@@ -1770,7 +1770,7 @@ class CagetteService(models.Model): ...@@ -1770,7 +1770,7 @@ class CagetteService(models.Model):
except Exception as e: except Exception as e:
marshal_none_error = 'cannot marshal None unless allow_none is enabled' marshal_none_error = 'cannot marshal None unless allow_none is enabled'
if not (marshal_none_error in str(e)): if not (marshal_none_error in str(e)):
update_shift_reg_result['errors'].append({'shift_id': sid, 'msg' :str(e)}) update_shift_reg_result['errors'].append({'shift_id': self.id, 'msg' :str(e)})
return update_shift_reg_result return update_shift_reg_result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment