Because the id's from the fivestar form are (as per drupal default) unique per page, using fivestar with views and the "Load More" module created a situation where the same id was given multiple times
a simple fix to this is the following:
in fivestar.module function fivestar_expand() add the #id element to the 'vote' object:

  $element['vote'] = array(
    '#type' => 'select',
    '#options' => $options,
    '#required' => $element['#required'],
    '#theme' => 'fivestar_select',
    '#id' => 'edit-vote--'.uniqid(),
    '#default_value' => _fivestar_get_element_default_value($element),
  );
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

omaster’s picture

Wow this should be committed to the fivestar module. It doesn't appear to do any harm but fixes it.

joelpittet’s picture

Issue summary: View changes
Status: Patch (to be ported) » Active

The status should be active since there is no patch and patch to be ported means back or forward porting from a different branch

dbt102’s picture

Status: Needs review » Needs work
dbt102’s picture

Status: Needs work » Needs review
FileSize
524 bytes