Needs review
Project:
Node Authorize Link
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Apr 2021 at 12:11 UTC
Updated:
26 Jun 2021 at 18:45 UTC
Jump to comment: Most recent
The NodeAuthlinkNodeForm form builder class is explicitly loading node objects instead of accepting it from Drupal's Routing system. This has the implication that other modules (e.g. entity_hierarchy) working on node routes are also getting a node id for the node route parameter instead of the node object. This is leading to fatal errors in some cases.
The attached patch fixes this issue while retaining the original behaviour. It uses parameter upcasting to achieve this.
More testing...
| Comment | File | Size | Author |
|---|---|---|---|
| form-node-param-upcasting-1173784-0.patch | 2.78 KB | progga |
Comments
Comment #2
joelpittetSetting to needs review for 👀