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
{{ message }}
Repository navigation
A6: delete($AppUI) deletes holiday row 1 instead of the current row #7
CHoliday::remove() and HolidayFunctions::storeRecords() call $obj->delete($AppUI). w2p_Core_BaseObject::delete($oid) does $this->$k = (int) $oid. Casting the AppUI object gives a warning and 1, so the query deletes holiday_id = 1, not the intended row.
This happens when removing the last day of a one-day entry, and when merging two adjacent ranges (the second range is meant to be deleted).
store($AppUI) also passes the AppUI object as $updateNulls.
Activity