Fixed: set_options set model value
This commit is contained in:
parent
e4f86243b2
commit
0fd0f5ebc4
1 changed files with 1 additions and 1 deletions
|
|
@ -695,7 +695,7 @@ frappe.ui.form.ControlSelect = frappe.ui.form.ControlData.extend({
|
|||
// set the default option (displayed)
|
||||
var input_value = this.$input.val();
|
||||
var model_value = frappe.model.get_value(this.doctype, this.docname, this.df.fieldname);
|
||||
if(model_value == null && input_value != (model_value || "")) {
|
||||
if(model_value == null && (input_value || "") != (model_value || "")) {
|
||||
this.set_model_value(input_value);
|
||||
} else {
|
||||
this.last_value = value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue