In reload_doc overwrite reqd, hide, print hide properties

This commit is contained in:
Nabin Hait 2012-01-11 16:45:02 +05:30
parent e0347e5fa2
commit a0ef617a0f

View file

@ -208,7 +208,7 @@ class UpdateDocType(UpdateDocumentMerge):
def get_orignal_values(self, d):
if d.doctype=='DocField':
t = self.get_id(d)[0]
return {'name': t[0], 'options': t[1], 'reqd':t[3], 'print_hide':t[4], 'hidden':t[5], 'fieldtype':t[6]}
return {'name': t[0], 'options': t[1], 'fieldtype':t[6]}
if d.doctype=='DocType':
return webnotes.conn.sql("select server_code, client_script from `tabDocType` where name=%s", d.name, as_dict = 1)[0]