#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.
CommentFileSizeAuthor
#1 1421666.patch2.32 KBdamiankloip

Comments

damiankloip’s picture

Status: Active » Needs review
StatusFileSize
new2.32 KB

Here 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!

bojanz’s picture

Status: Needs review » Fixed

Worked on it some more, and committed.

Thank you for your help today, it is greatly appreciated.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Fixing formatting.