ソースを参照

fixed spelling mistake in search_criteria.py

version-14
Nabin Hait 14年前
コミット
6f6fe9a006
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      cgi-bin/core/doctype/search_criteria/search_criteria.py

+ 2
- 2
cgi-bin/core/doctype/search_criteria/search_criteria.py ファイルの表示

@@ -28,7 +28,7 @@ class DocType:

def validate(self):
if sql("select name from `tabSearch Criteria` where criteria_name=%s and name!=%s", (self.doc.criteria_name, self.doc.name)):
webnots.msgprint("Criteria Name '%s' already used, please use another name" % self.doc.criteria_name, raise_exception = 1)
webnotes.msgprint("Criteria Name '%s' already used, please use another name" % self.doc.criteria_name, raise_exception = 1)

def on_update(self):
self.set_module()
@@ -72,4 +72,4 @@ class DocType:
if os.path.exists(os.path.join(path, old_name + extn)):
os.system('cp %s %s' % (os.path.join(path, old_name + extn), \
os.path.join(get_module_path(self.doc.module), 'search_criteria', scrub(self.doc.name), scrub(self.doc.name) + extn)))

読み込み中…
キャンセル
保存