#1057158: Provide an action for modifying entity values followup.
Right now the code displays all bundles that have at least one field enabled.
We should filter that some more, if the view has a bundle filter, and the user selected something (limiting the node view to articles for example), only show those bundles and their fields (so only fields belong to articles, for example).
There's already a @todo in _views_bulk_operations_modify_action_get_bundles() for this:
* @todo Make it consult the view passed through $context, and if it has a
* filter on the bundle key, use the selected values.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1421666.patch | 2.32 KB | damiankloip |
Comments
Comment #1
damiankloip commentedHere is an initial patch for this. As discussed in IRC, I have changed the _views_bulk_operations_modify_action_get_bundles function parameter to now pass in full $context variable, rather than just $context['settings']['display_values']. We can then use the view and check the bundles.
Let me know what you think!
Comment #2
bojanz commentedWorked on it some more, and committed.
Thank you for your help today, it is greatly appreciated.
Comment #3.0
(not verified) commentedFixing formatting.