Problem/Motivation
When trying to run a scan on a node page with a Date field, it doesn't work. There's no errors on the screen, but using xdebug you can find the form error, "The datetime value must be a string."
I asked Claude and it said:
The triggerFormValidation method calls ContentEntityForm::validateForm(), which runs
$entity->validate() — full typed data validation. DateTime field values are still
DrupalDateTime objects at this stage (they're only serialized to strings in
preSave()), so the PrimitiveTypeConstraint on the datetime_iso8601 data type fails
with "The datetime value must be a string."
(I am not a backend dev, so i'm sorry if this is not the right explanation)
Steps to reproduce
1. Install this module and connect to API
2. Edit a node with a date field
3. Click Quick scan
4. Modal does not pop up
Proposed resolution
Ignore any violations that are flagged by date fields
Remaining tasks
1. Implement fix in AcquiaOptimizeFormAlter triggerFormValidation method
User interface changes
none
API changes
none
Data model changes
none
Comments