You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
Dolicraft
committed
FixDolibarr#36480 timesheet date comparison accepts string and timestamp
addTimeSpent, updateTimeSpent and delTimeSpent compared $this->timespent_date
(which can be a 'YYYY-MM-DD' string when called from some callers) directly
with the integer timestamp returned by dol_time_plus_duree, so the
PROJECT_TIMESHEET_PREVENT_AFTER_MONTHS restriction silently allowed past
entries it should refuse. Normalize the left-hand side with a numeric/strtotime
guard at the three comparison sites.
Signed-off-by: Dolicraft <contact@dolicraft.com>
0 commit comments