Rushabh Mehta 7 anni fa
parent
commit
b4001046d5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/custom/doctype/customize_form/customize_form.py

+ 1
- 1
frappe/custom/doctype/customize_form/customize_form.py Vedi File

@@ -108,7 +108,7 @@ class CustomizeForm(Document):
'''Create, update custom translation for this doctype''' '''Create, update custom translation for this doctype'''
current = self.get_name_translation() current = self.get_name_translation()
if current: if current:
if self.label and current!=self.label:
if self.label and current.target_name != self.label:
frappe.db.set_value('Translation', current.name, 'target_name', self.label) frappe.db.set_value('Translation', current.name, 'target_name', self.label)
frappe.translate.clear_cache() frappe.translate.clear_cache()
else: else:


Caricamento…
Annulla
Salva