Fix #6068 where empty options keep adding on each save for fieldtype select.
This commit is contained in:
Sibidharan Nandhakumar 2018-09-11 21:57:47 +05:30 committed by GitHub
parent c760ad5245
commit d46c1b5491
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ class DocType(Document):
for option in field.options.split("\n"):
new_options += option.strip()
new_options += "\n"
new_options.rstrip("\n")
new_options = new_options.rstrip("\n")
field.options = new_options
def validate_series(self, autoname=None, name=None):