Reproduce the issue:
1. Create a view to present articles by Views(7.x-3.16)
2. Add VBO field to above view, and reorder it to the first.
3. Add Fivestar widget field to above view
4. Click any star on the first row of the view (take a look on the video in my blog(VBO made something wrong for Fivestar field))
5. Other Vote widget have affected.
6. Refresh the view, the first vote result has remained(correct result)

I exported the view settings as bellow:
$view = new view();
$view->name = 'fivestar_test';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Fivestar test';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Fivestar test';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'table';
/* Field: Bulk operations: Content */
$handler->display->display_options['fields']['views_bulk_operations']['id'] = 'views_bulk_operations';
$handler->display->display_options['fields']['views_bulk_operations']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['views_bulk_operations']['field'] = 'views_bulk_operations';
$handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['display_type'] = '0';
$handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['enable_select_all_pages'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['row_clickable'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['force_single'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['vbo_settings']['entity_load_capacity'] = '10';
$handler->display->display_options['fields']['views_bulk_operations']['vbo_operations'] = array(
'action::views_bulk_operations_change_owner_action' => array(
'selected' => 1,
'postpone_processing' => 0,
'skip_confirmation' => 0,
'skip_permission_check' => 0,
'override_label' => 0,
'label' => '',
),
);
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Field: Content: favored */
$handler->display->display_options['fields']['field_favored']['id'] = 'field_favored';
$handler->display->display_options['fields']['field_favored']['table'] = 'field_data_field_favored';
$handler->display->display_options['fields']['field_favored']['field'] = 'field_favored';
$handler->display->display_options['fields']['field_favored']['click_sort_column'] = 'rating';
$handler->display->display_options['fields']['field_favored']['settings'] = array(
'widget' => array(
'fivestar_widget' => 'default',
),
'expose' => 1,
'style' => 'user',
'text' => 'user',
);
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'article' => 'article',
);

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'fivestar-test';

Comments

chenpurong created an issue. See original summary.

chenpurong’s picture

Issue summary: View changes
joelpittet’s picture

Thanks for the steps to reproduce. Does this happen with the latest -dev release as well?

joelpittet’s picture

Also, if you remove VBO field, does this work correctly?

chenpurong’s picture

Hi Joelpittet,

Thanks for your quick replay.

I tested VBO(7.x-3.x-dev) in a clean D7 and it also has the same issue as I reported.
Fivestar works correctly if remove VBO. Please refer to following ticket I reported to Fivestar project at first(a litter different behaviour).
https://www.drupal.org/node/2877576

joelpittet’s picture

Version: 7.x-3.4 » 7.x-3.x-dev

The steps are great, thanks, just need some time to dig in.

joelpittet’s picture

Title: Starts(Fivestar module) disappeared when add VBO field to a view. » Ajax star widgets disappear when used with any views form
Project: Views Bulk Operations (VBO) » Fivestar

Ok confirmed the bug, the problem isn't with VBO, any type you generate a views form(meaning a form that surrounds the entire view produced by a form field being added in a view or a vbo field checkbox in this case), this will break fivestar. This is because fivestar is using and expecting form tags around each field in the view and the first one just finish the nested form tags.
To illustrate the HTML looks like this:

<form><form>first fivestar is looking at the parent as it's form and replacing every widget inside that.</form>
<form></form>
<form></form>
</form>

For them to resolve this, they would need to use another HTML element for the ajax wrapping, and if they need the form to use views provided form tag.

chenpurong’s picture

Version: 7.x-3.x-dev » 7.x-2.x-dev
Component: Core » Code

Thank you Joelpittet, for your conformation.
So, I should report this issue to Views project to see if they have any solution.

chenpurong’s picture

Project: Fivestar » Views (for Drupal 7)
Version: 7.x-2.x-dev » 7.x-3.16

I reported this issue to FiveStart/VBO projects.
The issue seemed not related to above projects. So I report it to Views project to see if there is any solution I can get.

Thanks.

chenpurong’s picture

Project: Views (for Drupal 7) » Fivestar
Version: 7.x-3.16 » 7.x-2.x-dev

Sorry, I just made a mistake that assigned it to Views.
Assign it back to Fivestar project as Joelpittet suggested.

dbt102’s picture

Thanks for your reporting this issue and the follow up @chenpurong

There is another views-relevant issue #1976496: Fivestar with Views and Load more not working @joetpittet commented on with a new patch.

Could you review/comment on that? Now sure if it is relevant to this issue or not, but I think it would help move us forward.

joelpittet’s picture

That is a similar but wouldn't resolve this due to the nested form elements