Bläddra i källkod

error fixed

version-14
nabinhait 14 år sedan
förälder
incheckning
1528fc0ee1
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      cgi-bin/webnotes/model/doclist.py

+ 2
- 2
cgi-bin/webnotes/model/doclist.py Visa fil

@@ -158,11 +158,11 @@ class DocList:
try:
self.doc.save(cint(self.doc.__islocal))
except NameError, e:
webnotes.msgprint('%s "%s" already exists' % (doc.doctype, doc.name))
webnotes.msgprint('%s "%s" already exists' % (self.doc.doctype, self.doc.name))
# prompt if cancelled
if webnotes.conn.get_value(doc.doctype, doc.name, 'docstatus')==2:
webnotes.msgprint('[%s "%s" has been cancelled]' % (doc.doctype, doc.name))
webnotes.msgprint('[%s "%s" has been cancelled]' % (self.doc.doctype, self.doc.name))
webnotes.errprint(webnotes.utils.getTraceback())
raise e



Laddar…
Avbryt
Spara