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

solysergio’s picture

Title: Multi Ratings get NULL values » Nothing yet?

Nobody has found a solution ?

ptmkenny’s picture

Title: Nothing yet? » Multi Ratings get NULL values

@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.

Anonymous’s picture

This 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.

heine’s picture

Status: Active » Closed (duplicate)