Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
UR NA module tries to transform its form data array using nodeapi hook. But the hook is invoked outside of form processing too, when the data doesn't require transformation.
This leads to the logics not working in such cases and to NA user settings for the node resetting.
Comment | File | Size | Author |
---|---|---|---|
#1 | ur_na_nodeapi_reset_bugfix_1630064_1.patch | 2.47 KB | crea |
Comments
Comment #1
crea CreditAttribution: crea commentedAttached patch moves transformation logics to submit hook, which fixes the problem.
P.S. In my opinion the transformation only makes the code complicated without any significant gains. But to reduce my work in this patch I've chosen to keep the transformation logics.
Comment #3
crea CreditAttribution: crea commentedThe patch above is missing global $user declaration in the
user_relationship_node_access_node_form_submit()
function, but its working anyway because access checks are done for the current user by default.It can be changed simply to