- Issue created by @joewhitsitt
- Status changed to Needs review
9 months ago 9:57pm 15 March 2024 - First commit to issue fork.
- π¨π¦Canada mandclu
Thanks for identifying this, and for suggesting a fix. The approach you've taken seems sensible enough, but I wonder if it wouldn't be better to update the call to augmentOutput() within SmartDateTrait::viewElements to pass in the calculated $start_ts and $end_ts values instead (or maybe in addition?).
The original code looks like it did that, which makes me think there's a reason I decided not when this was refactored. A year later, however, I don't seem to have any notes on that.
I'm inclined to want to test that first, to see if there's an obvious reason why using the $start_ts and $end_ts values already calculated wouldn't be a better approach.
-
mandclu β
committed 9e7d0c3d on 4.1.x authored by
joewhitsitt β
Issue #3426738 by mandclu, joewhitsitt: is_numeric check after...
-
mandclu β
committed 9e7d0c3d on 4.1.x authored by
joewhitsitt β
- Status changed to Fixed
8 months ago 5:31pm 27 April 2024 - π¨π¦Canada mandclu
After giving this some more thought, it only makes sense to ensure the values are numeric without the augmentOutput method, whether or not the method should be fed the original, unaltered values. I added a todo to revisit that question, and also moved the code that normalizes the values before the loop. Merged in.
Automatically closed - issue fixed for 2 weeks with no activity.