Browse Source

App labels

master
venkataakhil 1 year ago
parent
commit
7cf4d6acbd
  1. 1
      smart_service/apis/support.py
  2. 4
      smart_service/masters/doctype/app_labels/app_labels.js

1
smart_service/apis/support.py

@ -412,6 +412,7 @@ def set_procedure_false():
@frappe.whitelist(allow_guest=1)
def clear_procedures():
try:
pass
# set_procedure_false()
# frappe.db.sql('''delete FROM `tabPublish`;''')
# frappe.db.sql('''delete FROM `tabPublish_Docs`;''')

4
smart_service/masters/doctype/app_labels/app_labels.js

@ -63,7 +63,7 @@ frappe.ui.form.on('App Labels', {
frappe.throw(__("Just a <b>.</b> is not prescribed!"));
frappe.validated = false;
}
var regex = /[!@#$%^&*()_+\=\[\]{};`~':"\\|.<>\/?]+/;
var regex = /[!@#$%^&*()+\=\[\]{};`~':"\\|.<>\/?]+/;
if (frm.doc.page_name) {
if (regex.test(frm.doc.page_name) === true) {
frappe.throw(__("<b>Page Name :</b> Only letters, numbers and <b> -,</b> are allowed."));
@ -90,7 +90,7 @@ frappe.ui.form.on('App Labels', {
frappe.throw(__("Just a <b>.</b> is not prescribed!"));
frappe.validated = false;
}
var regex = /[!@#$%^&*()_+\=\[\]{};`~':"\\|.<>\/?]+/;
var regex = /[!@#$%^&*()+\=\[\]{};`~':"\\|.<>\/?]+/;
if (frm.doc.label) {
if (regex.test(frm.doc.label) === true) {
frappe.throw(__("<b>Translated Label :</b> Only letters, numbers and <b> -,</b> are allowed."));

Loading…
Cancel
Save