3421753: fix error on new node creation
1 unresolved thread
1 unresolved thread
Closes #3421753
Merge request reports
Activity
135 135 } 136 136 137 137 // No sense in submit button for auto-apply case. 138 if (!$auto_apply) { 138 // Check if node id exists (in case we add a new node) 139 if (!$auto_apply && $node->id()) { Hmmm I wonder how we hit here in the first place? I guess my concern here is then:
- User creates a new node and wants to get tag suggestions
- Node does not yet have an ID, so user no longer sees a 'Save selections' submit button, user is not able to apply suggested tags
Is this the case now with this change?
I assume that when a user attempts to get tag suggestions, this first saves the node (the module's custom button is submitting the node form); hence, a node ID will be available on the next step.
Edited by Andrea KostakisIf my assumption is wrong (re-save and then generate), the patch fixes the issue but makes the "Generate references with AI" unusable on node creation. If that's the case, I think that even without the patch, this is a broader issue, as this probably breaks the new node form? The submission form likely does not let the user save a new node in general.
Edited by Andrea Kostakis
Please register or sign in to reply