View Issue Details

IDProjectCategoryView StatusLast Update
0005448Composr alpha bug reports[All Projects] General / Uncategorisedpublic2025-02-25 16:09
ReporterPatrick SchmalstigAssigned ToChris Graham 
SeverityMinor-bug 
Status assignedResolutionopen 
Summary0005448: Blanking out a date field does not save a blank date
DescriptionWhen blanking out an optional date / time field, it does not save. Instead, Composr maintains the previous value of the field. The expected behavior is that the date/time field would save as blank.
Additional InformationBe cautious about this because we do not want to save blank dates/times if the post param was not actually specified; we need to ensure it was actually specified as blank and not just excluded as a parameter / field.
TagsRoadmap: v11
Sponsorship open

Activities

Patrick Schmalstig

2024-10-12 21:44

administrator   ~0009465

This needs discussion on implementation

Patrick Schmalstig

2025-02-25 16:08

administrator   ~0009813

Last edited: 2025-02-25 16:09

View 3 revisions

I attempted to fix this as a fix is needed for the validation time feature to fully work. However, I was unsuccessful.

My attempted method was to alter the API for getting date components so that it returns null for a blank date and false for no date field being provided at all. Unfortunately, this created a mess of type errors and bugs. It also created a cascade effect as altering one API resulted in having to alter several more.

Issue History

Date Modified Username Field Change
2023-11-21 09:15 Patrick Schmalstig New Issue
2023-11-21 09:15 Patrick Schmalstig Status non-assigned => assigned
2023-11-21 09:15 Patrick Schmalstig Assigned To => Patrick Schmalstig
2024-09-13 02:34 Patrick Schmalstig Tag Attached: Roadmap: v11
2024-10-12 21:43 Patrick Schmalstig Assigned To Patrick Schmalstig => Chris Graham
2024-10-12 21:44 Patrick Schmalstig Note Added: 0009465
2025-02-25 16:08 Patrick Schmalstig Note Added: 0009813
2025-02-25 16:08 Patrick Schmalstig Note Edited: 0009813 View Revisions
2025-02-25 16:09 Patrick Schmalstig Note Edited: 0009813 View Revisions