- Issue created by @gallegosj
- π³π±Netherlands johnv
Please try above one-liner. It fixes the 'Clear' issue. (I keep getting confused with contradicting phpcs instructions in PHP vs. JS)
I cannot reproduce the am/pm issue after the fix.Please report back with your results.
- πΊπΈUnited States gallegosj
I upgraded to 1.21 and both issues remain. "Copy previous day" will not copy AM/PM selections, and the "Clear" operation does nothing.
When I try running Cron I receive the following error:
Caught exception: Attempted to create, modify or delete an instance of field with name field_hours on entity type node when the field storage does not exist. The website encountered an unexpected error. Try again later.
- π³π±Netherlands johnv
When I change the field setting from HTML5 into Select List, I get the following error, presumable from the (hidden) default value widget:
Warning: Undefined array key "hour" in Drupal\office_hours\Element\OfficeHoursDatelist::valueCallback() (line 52 of ...\office_hours\src\Element\OfficeHoursDatelist.php)
- π³π±Netherlands johnv
I fixed the above error in #3500427-2: Warning: Undefined array key "hour" in OfficeHoursDatelist when changing 'Time element type' β . The error does not influence any other behaviour, though.
- πΊπΈUnited States gallegosj
Using latest dev version. "AM/PM" selections are being copied in the Seasons widget only. Issue remains for Week widget and Exceptions widget.
"Clear" button appears to be fixed on all widgets now. Thanks!
Previous reported error persists upon Cron run.
Caught exception: Attempted to create, modify or delete an instance of field with name field_hours on entity type node when the field storage does not exist. The website encountered an unexpected error. Try again later.
- π³π±Netherlands johnv
I cannot reproduce the 'copy' error.
what happens when you change from exceptions widget to normale week widget (where you cannot see season/exception)?
what theme do you use? Does it happen with an out of the box Drupal core theme?I also cannot see the 'caught exception'. I guess both have to do with another.
did you run update.php? - πΊπΈUnited States gallegosj
Switching to the normal week widget (without exceptions) makes no change. I am using the core Claro theme for administration. No pending updates for update.php.
Drupal 10.3.11, PHP 8.3.14