Sfoglia il codice sorgente

[minor] fixes for check_if_latest method (#2377)

version-14
Makarand Bauskar 8 anni fa
committed by Rushabh Mehta
parent
commit
bf37e4a254
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/model/document.py

+ 1
- 1
frappe/model/document.py Vedi File

@@ -481,7 +481,7 @@ class Document(BaseDocument):
modified = frappe.db.sql('''select value from tabSingles
where doctype=%s and field='modified' for update''', self.doctype)
modified = modified and modified[0][0]
if cstr(modified) and cstr(modified) != cstr(self._original_modified):
if modified and modified != cstr(self._original_modified):
conflict = True
else:
tmp = frappe.db.sql("""select modified, docstatus from `tab{0}`


Caricamento…
Annulla
Salva