diff --git a/RoutesApp/funcs.py b/RoutesApp/funcs.py index 7555e8e..cbef7b5 100644 --- a/RoutesApp/funcs.py +++ b/RoutesApp/funcs.py @@ -1,3 +1,5 @@ +from BaseModels.mailSender import techSendMail +from GeneralApp.funcs_options import get_mail_send_options from .models import * from .forms import * from django.utils.translation import gettext as _ @@ -169,6 +171,10 @@ def get_routes_Dict(user=None, data=None): kwargs.update({ 'owner': user }) + else: + msg = f'get_routes_Dict not have user - user={str(user)}, data={str(data)}' + mail_sets = get_mail_send_options() + techSendMail(mail_sets, msg) from_el = None to_el = None diff --git a/static/js/user_profile.js b/static/js/user_profile.js index ee5381f..4236194 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -1308,7 +1308,7 @@ function hideErrors(el) { error_feeedback_text.classList.add('hide') } else if(error_feeedback === footer_button && error_footer !== null ){ error_footer.classList.add('hide') - } else if(el.id === 'agreement_check' && agree_error){ + } else if(el.id === 'agreement_check' && agree_error !== null){ agree_error.classList.add('hide') } else if(el.id === 'id_arrival_DT' && error_arrival_DT !== null){ error_arrival_DT.classList.add('hide')