Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297347

Move user_user_presave() to User entity class

$
0
0

Problem/Motivation

In #3015811: Properly deprecate DRUPAL_USER_TIMEZONE_* constants we tried to move all the system module's user code to the user module but system_user_presave() proved problematic because of the interaction between filtering empty field items and when the presave hook is fired as opposed to when the entity's preSave() method is called.

Note that when this method is move to the entity class Drupal\Tests\user\Kernel\Migrate\d6\MigrateUserTest fails.

Proposed resolution

Resolve difference between a NULL and '' and ensure that the timezone is set as expected.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 297347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>