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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2309415-ajax_submit_was_not_working-2.patch | 913 bytes | dbt102 |
|
Comments
Comment #1
dbt102 CreditAttribution: dbt102 at BACnet Interest Group - Drupal for BACnet Interest Group - Drupal commentedComment #2
dbt102 CreditAttribution: dbt102 at BACnet Interest Group - Drupal for BACnet Interest Group - Drupal commentedChecked this on the current 7.x-2.x-dev, and it has not been changed there. Submitting patch for review/comment/testing.
Comment #3
dbt102 CreditAttribution: dbt102 at BACnet Interest Group - Drupal for BACnet Interest Group - Drupal commented