mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
[Fix] New holiday list form is not working
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
|
||||
frappe.ui.form.on('Holiday List', {
|
||||
refresh: function(frm) {
|
||||
frm.set_value('total_holidays', frm.doc.holidays.length);
|
||||
if (frm.doc.holidays) {
|
||||
frm.set_value('total_holidays', frm.doc.holidays.length);
|
||||
}
|
||||
},
|
||||
from_date: function(frm) {
|
||||
if (frm.doc.from_date && !frm.doc.to_date) {
|
||||
|
||||
Reference in New Issue
Block a user