]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commit
fix(ERP-254): throw 404 when no open shift found on close origin/feature_filippov_ERP-254_fix_close_shift_null_fact
authorAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Sat, 7 Mar 2026 17:48:54 +0000 (20:48 +0300)
committerAleksey Filippov <Aleksey.Filippov@erp-flowers.ru>
Sat, 7 Mar 2026 17:48:54 +0000 (20:48 +0300)
commitb00e5d5b191e9e9b1378ba4859afce5489efb316
tree8c8ab783dd05832807a7924763153e0fee1ee50c
parent765bafa99610967f472ff9eaf7f2e78790a1aa7f
fix(ERP-254): throw 404 when no open shift found on close

TimetableFactModel::getLast() returns null if no open fact exists
for the admin on the current/previous date. Accessing checkin_start_id
on null caused PHP Warning and 500 response. Now returns proper 404.
erp24/api3/core/services/TimetableService.php