Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Publishing / Unpublishing files using views bulk operations fails.
If not explicitly set in file_admin_action_info, 'behavior' defaults to 'changes_property' this causes the entity to be re-saved in views_bulk_operations/plugins/operation_types/action.class.php/execute() with the original value after _file_mass_update_helper() is called.
This can be stopped by setting `'behavior' => array('views_property'),` in `file_admin_action_info()`;
VBO docs here https://www.drupal.org/node/2052067
Comment | File | Size | Author |
---|---|---|---|
#6 | file_admin_2903274-6.patch | 602 bytes | mikkmiggur |
#5 | file_admin_2903274-5.patch | 671 bytes | mikkmiggur |
#4 | 2903274-1.patch | 745 bytes | Dave Kopecek |
#3 | 2903274-1.patch | 745 bytes | Dave Kopecek |
Comments
Comment #2
Dave KopecekComment removed.
Comment #3
Dave KopecekSomehow resubmitted the same thing multiple times. Cleaning up. Because history.
Comment #4
Dave KopecekComment #5
mikkmiggur CreditAttribution: mikkmiggur commentedThere seems like not correct patch file. In patch file you are removing these lines but you need to add these.
And that behavior value can be just empty
'behavior' => array(''),
From VBO docs:
Comment #6
mikkmiggur CreditAttribution: mikkmiggur commentedFixed patch file.
Makefile couldn't handle the last one.