Skip to content

Commit

Permalink
Fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Sep 13, 2023
1 parent 413d4e0 commit 052e88b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ <h3 class="modal-title" id="modalTitle">Signaler votre intérêt à l'acheteur ?

// Update the modal's content
var modal = document.querySelector(MODAL_ID);
modal.querySelectorAll('#auth-link').forEach(link => {
var linkUrl = link.getAttribute('href');
link.setAttribute('href', linkUrl.replace('siae-id-params-to-replace', siaeIdParams));
});
var form = modal.querySelector('form');
var formAction = form.getAttribute('action');
form.setAttribute('action', formAction.replace('siae-id-params-to-replace', siaeIdParams));
});
});
</script>
3 changes: 1 addition & 2 deletions lemarche/www/tenders/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ def post(self, request, *args, **kwargs):
user = self.request.user
detail_contact_click_confirm = self.request.POST.get("detail_contact_click_confirm", False) == "true"
siae_id = request.GET.get("siae_id", None)
print("TenderDetailContactClickStatView post", siae_id)
if (user.is_authenticated and user.kind == User.KIND_SIAE) or siae_id:
if detail_contact_click_confirm:
# update detail_contact_click_date
Expand Down Expand Up @@ -395,7 +394,7 @@ def get_success_url(self, detail_contact_click_confirm, siae_id=None):
if detail_contact_click_confirm:
success_url += "?nps=true"
if siae_id:
success_url += "&siae_id=true"
success_url += f"&siae_id={siae_id}"
return success_url

def get_success_message(self, detail_contact_click_confirm):
Expand Down

0 comments on commit 052e88b

Please sign in to comment.