FIX: setter must return the value

This commit is contained in:
Régis Hanol 2015-08-17 18:29:12 +02:00
parent 127f6fcea0
commit 3149f07edc
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ export default {
return fields && fields.enable_accepted_answers === "true";
},
set(value) {
this.set("custom_fields.enable_accepted_answers", value ? "true" : "false");
value = value ? "true" : "false";
this.set("custom_fields.enable_accepted_answers", value);
return value;
}
}