Merge pull request #13157 from hrwX/patch-3
fix: parse Today default value for date docfield
This commit is contained in:
commit
0d0cb8b877
1 changed files with 3 additions and 1 deletions
|
|
@ -13,9 +13,11 @@ frappe.ui.form.ControlDate = frappe.ui.form.ControlData.extend({
|
|||
this._super(value);
|
||||
if (this.timepicker_only) return;
|
||||
if (!this.datepicker) return;
|
||||
if(!value) {
|
||||
if (!value) {
|
||||
this.datepicker.clear();
|
||||
return;
|
||||
} else if (value === "Today") {
|
||||
value = this.get_now_date();
|
||||
}
|
||||
|
||||
let should_refresh = this.last_value && this.last_value !== value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue