If I enabled the VBO module, the list pan shows checkboxes to select existing codes. However, I was not able to perform any operation on the selected codes since there is no operation is listed in the 'Bulk operations' dropdown control.

Based on the screen shot at the project's home page, I assume that I should see 'Active Codes', 'Deactivate Codes', 'Delete Codes' and 'Tag Codes'.

Does my system working correctly or do I forget to configure something? Or if the feature was not finished yet?

Thanks.

Comments

aidanlis’s picture

Status: Active » Postponed (maintainer needs more info)

Is this still an issue?

lunazoid’s picture

I've noticed this problem too...

jim kirkpatrick’s picture

Status: Postponed (maintainer needs more info) » Active

Confirmed... Seems that the code starting on line 617 of regcode.views_default.inc that sets up the VBO actions doesn't work...

      'selected_operations' => array(
        'regcode_activate_action' => 'regcode_activate_action',
        'regcode_deactivate_action' => 'regcode_deactivate_action',
        'regcode_delete_action' => 'regcode_delete_action',
        'regcode_mailer_mail_action' => 'regcode_mailer_mail_action',
        'regcode_tag_action' => 'regcode_tag_action',
        'system_message_action' => 0,
        'views_bulk_operations_action' => 0,
        'views_bulk_operations_script_action' => 0,
        'views_bulk_operations_argument_selector_action' => 0,
        'system_goto_action' => 0,
        'system_send_email_action' => 0,
      ),

Not sure about VBO, but a quick check through its code had no reference to 'selected_operations' outside the views_bulk_operations.install file.

jim kirkpatrick’s picture

Status: Active » Needs review

Further to my last, it appears VBO has changed/refactored the options code sometime between 6.x-1.10 and 6.x-1.12... I'm using the latest DEV and the code for function get_selected_operations() in views_bulk_operations_plugin_style.inc has been refactored to look for 'options' rather than 'selected options', plus other changes.

So the RegCode VBO integration code is out of date with the current version of VBO.

To fix, the snippet of the config array (from line 617 of regcode.views_default.inc) I posted above should in fact look like this:

      'operations' => array(
        'regcode_activate_action' => array('selected' => TRUE),
        'regcode_deactivate_action' => array('selected' => TRUE),
        'regcode_delete_action' => array('selected' => TRUE),
        'regcode_mailer_mail_action' => array('selected' => TRUE),
        'regcode_tag_action' => array('selected' => TRUE),
      ),

With the above the Bulk Operations dropdown has proper actions and they work as expected. I dropped the unused actions and skipped any settings that just set up defaults, but I'm not a hardcore views/VBO coder so please check that this works.

Works for me anyway with VBO 6.x-1.12 and the latest DEV.

jim kirkpatrick’s picture

Title: VOB Bulk operation provide no option » RegCode uses obsolete VBO operations format causing 'Bulk operations' dropdown to be empty
Component: User interface » Code
lunazoid’s picture

Using the fix in #4, the VBO integration appears to be working. I haven't tested this extensively, but the items are now in the drop box, and it looks like they are doing what they should be. Thank you!!!

jim kirkpatrick’s picture

Status: Needs review » Reviewed & tested by the community
jim kirkpatrick’s picture

Issue summary: View changes

Corrected VOB to VBO

tr’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (outdated)

This code was removed from regcode.views_default.inc in commit 15ad4df0 (no corresponding issue ...) during the port to D7. The replacement code is in regcode.views.inc. The replacement code does not seem to have this problem.

Drupal 6 is unsupported and has been unsupported for more than 5 years. Changes will no longer be made to the D6 version of this module.