Now pass_values_to_form not reset the txt_error from fields
This commit is contained in:
parent
a63abde3be
commit
d06d38db52
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ def pass_values_to_form(post, arr_form, yes_error=True):
|
||||||
if arr_form[key].field.error == None:
|
if arr_form[key].field.error == None:
|
||||||
arr_form[key].field.check(post[key])
|
arr_form[key].field.check(post[key])
|
||||||
|
|
||||||
arr_form[key].txt_error=""
|
#arr_form[key].txt_error=""
|
||||||
|
|
||||||
if arr_form[key].required==True and arr_form[key].field.error==True and yes_error==True:
|
if arr_form[key].required==True and arr_form[key].field.error==True and yes_error==True:
|
||||||
arr_form[key].txt_error=arr_form[key].field.txt_error
|
arr_form[key].txt_error=arr_form[key].field.txt_error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue