Skip to content

Improve the presave behavior

Michael Taltavull requested to merge improve-presave-behavior into 1.0.x

The presave logic has been moved from the field widget to the hook_entity_presave(). This hook runs on every save of the entity, whereas there were some situations where the widget's presave method would not run. The main case where it does not run is if the widget is disabled on the entity form. Even if the user decides not to display the read times on the form, we still want the read time to be estimated.

Merge request reports

Loading