backdrop-contrib / webform_registration

Allow Webforms to register users
GNU General Public License v2.0
0 stars 2 forks source link

Webform registration settings don't get saved properly #6

Closed tkcent closed 1 year ago

tkcent commented 1 year ago

When the node is cached, hook_node_load never gets called so the settings aren't loaded by webform_registration_node_load().

Need to add code to clear cache in webform_registration_settings_form().

entity_get_controller('node')->resetCache(array($node->nid));

tkcent commented 1 year ago

Better to add resetCache() to the settings form submit function so node_load is not called unnecessarily.

tkcent commented 1 year ago

PR #11