Troubleshooting a problem I was running into I believe that this code in fivestar.module line 492:

    $votes = _fivestar_cast_vote($form_state['settings']['content_type'], $form_state['settings']['content_id'], $form_state['values']['vote'], $form_state['settings']['tag']);
  }

Should be changed to be sending in the entity_type, not content type:

    $votes = _fivestar_cast_vote($form_state['settings']['entity_type'], $form_state['settings']['content_id'], $form_state['values']['vote'], $form_state['settings']['tag']);
  }

Hope that helps someone. Mine works now.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dbt102’s picture

Title: ajax_submit wasn't working - fixed » ajax_submit wasn't working
dbt102’s picture

Version: 7.x-2.1 » 7.x-2.2
FileSize
913 bytes

Checked this on the current 7.x-2.x-dev, and it has not been changed there. Submitting patch for review/comment/testing.

dbt102’s picture

Status: Active » Needs review