[FIX] web_calendar: keep default name if event name empty
The name of an event is the name a created record will get. If the event name of a new event is left empty, the edited record will also be empty which could be less user friendly. closes #6896 fixes #6869 opw-640921
This commit is contained in:
parent
1cea0dc4e9
commit
27834a6e9b
|
@ -1026,7 +1026,7 @@ openerp.web_calendar = function(instance) {
|
||||||
|
|
||||||
slow_add: function() {
|
slow_add: function() {
|
||||||
var val = this.$input.val();
|
var val = this.$input.val();
|
||||||
this.slow_create({'name': val});
|
this.slow_create(_.isEmpty(val) ? {} : {'name': val});
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue