Problem/Motivation
When creating a new user restriction, after clicking on Create new user restriction, I get a WSOD.
The log shows the following error message.
TypeError: Cannot assign array to property Drupal\user_restrictions\Entity\UserRestriction::$expiration of type int in Drupal\Core\Config\Entity\ConfigEntityBase->set() (line 173 of /var/www/drupal/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php).
I got this error before the a5d334489357a96040f9178145823bc308f33f10 commit; right after it, I did no got that error, but I now get it again, on the live previews.
Issue fork user_restrictions-3552059
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
avpadernoLet's try a different approach. Using the validation handler to change the value associated to the form element seem not to work on Drupal 11.2, and really it is a hack.
Comment #5
avpadernoComment #8
avpadernoComment #9
avpadernoComment #12
avpaderno