When I use this module to use the mapping in a node got the following error:
Error: Call to a member function addContent() on null in /docroot/modules/contrib/group_mapping_from_node/group_mapping_from_node.module on line 132 #0 [internal function]: group_mapping_from_node_custom_submit(Array, Object(Drupal\Core\Form\FormState))
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | interdiff_3_4.txt | 733 bytes | maurizio.ganovelli |
| #4 | 3114431-4.patch | 901 bytes | maurizio.ganovelli |
| #3 | 3114431-3.patch | 547 bytes | anisha.challa |
Issue fork group_mapping_from_node-3114431
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anisha.challa commentedComment #3
anisha.challa commentedUploaded the patch for this issue. Please review.
Comment #4
maurizio.ganovelliPatch solves the error but during node creation, if you try to assign a group, you get this warning:
Warning: array_flip(): Can only flip STRING and INTEGER values!
and new group relation is not created. Works well only on edit.
Attached rerolled patch works in both cases.
Comment #5
jonathan_hunt commentedPatch in #4 works for me, thanks.
Comment #6
anisha.challa commentedComment #7
neerajsinghPatch at #4 worked for me too.
Comment #11
jcandan commentedComment #12
jcandan commented