Merge pull request #4038 from rohitwaghchaure/calendar_not_working_v8

[Fix] Calendar view is not working for sales order
This commit is contained in:
rohitwaghchaure 2017-09-04 12:13:11 +05:30 committed by GitHub
commit ac606fbbb1

View file

@ -242,7 +242,7 @@ frappe.views.Calendar = Class.extend({
if(this.get_css_class) {
color_name = this.color_map[this.get_css_class(d)];
color_name =
frappe.ui.color.validate(color_name) ?
frappe.ui.color.validate_hex(color_name) ?
color_name :
'blue';
d.backgroundColor = frappe.ui.color.get(color_name, 'extra-light');