Rev 36626 |
Rev 36629 |
Go to most recent revision |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 36628 2026-05-21 16:43:27
- Author: amit
- Log message:
- fix: /schemes/update endpoint now uses addSchemeItemWithDates to prevent duplicate scheme_item rows
The old code directly persisted SchemeItem with NULL start_date/end_date, which bypassed the unique constraint (MySQL treats NULLs as distinct). Now uses the same service method as /addItemToScheme, which sets dates from scheme window and checks for overlapping entries before insert.