for example, we have three Rating fields for one node:
field_job_rating_quality
field_job_rating_reliability
field_job_rating_money
if a user submit any rating the others get NULL values.
the problem is here (fivestar.field.inc)
"
function _fivestar_update_field_value($entity_type, $entity, $field_name, $langcode, $value) {
$entity->{$field_name}[$langcode][0]['rating'] = $value;
field_attach_presave($entity_type, $entity);
field_attach_update($entity_type, $entity);
}
"
drupal updates all the Rating fields for the entity (no matter which one was submitted), but the '$entity->{$field_name}[$langcode][0]['rating']' is filled only for submitted field.
Comments
Comment #1
solysergio commentedNobody has found a solution ?
Comment #2
ptmkenny commented@solysergio: Don't change the title when you post unless you are making the issue title more clear. The title field shown is not the title for your comment; it is the title for the entire issue.
Comment #3
Anonymous (not verified) commentedThis sounds similar to my issue here (https://drupal.org/node/2034509) although in my instance all ratings fields get the same value (e.g. 3 stars), not null.
Comment #4
heine commentedClosing as duplicate of #1462296: Voting on one of multiple fivestar fields leads to unexpected results