diff --git a/config.json b/config.json index 449437fc09..6ca9e453c8 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "base_template": "lib/website/templates/base.html", - "framework_version": "3.7.4", + "framework_version": "3.8.0", "modules": { "Calendar": { "color": "#2980b9", diff --git a/public/css/font-awesome.css b/public/css/font-awesome.css index 58f3f8d473..3cd3789352 100644 --- a/public/css/font-awesome.css +++ b/public/css/font-awesome.css @@ -32,6 +32,14 @@ font-weight: normal; font-style: normal; } + +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family: 'FontAwesome'; + src: url('../lib/css/font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1') format('svg'); + } +} + /* FONT AWESOME CORE * -------------------------- */ [class^="icon-"], diff --git a/webnotes/model/doc.py b/webnotes/model/doc.py index b8d0a7dc80..a0b1e81640 100755 --- a/webnotes/model/doc.py +++ b/webnotes/model/doc.py @@ -348,8 +348,7 @@ class Document: self.fields[f] = self._validate_link(link_list, f) if old_val and not self.fields[f]: - s = link_list[f][1] + ': ' + old_val - err_list.append(s) + err_list.append("{}: {}".format(link_list[f][1], old_val)) return err_list diff --git a/webnotes/widgets/query_report.py b/webnotes/widgets/query_report.py index 7e29bfa463..93f965d3bd 100644 --- a/webnotes/widgets/query_report.py +++ b/webnotes/widgets/query_report.py @@ -52,7 +52,7 @@ def get_script(report_name): return script @webnotes.whitelist() -def run(report_name, filters=None): +def run(report_name, filters=()): from webnotes.plugins import get_code_and_execute report = webnotes.doc("Report", report_name) diff --git a/website/js/website.js b/website/js/website.js index 5cd7ef80ca..d8acba3109 100644 --- a/website/js/website.js +++ b/website/js/website.js @@ -274,9 +274,10 @@ function is_html(txt) { } function ask_to_login() { - if(!full_name) { + if(!window.full_name) { if(localStorage) { - localStorage.setItem("last_visited", window.location.href.split("/").slice(-1)[0]); + localStorage.setItem("last_visited", + window.location.href.replace(window.location.origin, "")); } window.location.href = "login"; }