Merged [7365] from rjsparks@nostrum.com: Improve handling of status-change relation form submission when conditions (such as not running javascript) lead to the POST missing required fields.
- Legacy-Id: 7381 Note: SVN reference [7365] has been migrated to Git commit 9a7b186616823029fbe6bac5907bad50c5203e97
This commit is contained in:
parent
fd0602ac22
commit
dbc82f2b22
|
@ -437,7 +437,10 @@ def clean_helper(form, formtype):
|
|||
status_fields[k[21:]]=v
|
||||
for key in rfc_fields:
|
||||
if rfc_fields[key]!="":
|
||||
new_relations[rfc_fields[key]]=status_fields[key]
|
||||
if key in status_fields:
|
||||
new_relations[rfc_fields[key]]=status_fields[key]
|
||||
else:
|
||||
new_relations[rfc_fields[key]]=None
|
||||
|
||||
form.relations = new_relations
|
||||
|
||||
|
|
Loading…
Reference in a new issue