Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Vendor apply - add missing field - Terms Of Service option if redispl…
Browse files Browse the repository at this point in the history
…ay form
  • Loading branch information
KrzysztofPajak committed Nov 26, 2020
1 parent 3b202b7 commit 1f474ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Grand.Web/Controllers/VendorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ await _workflowMessageService.SendNewVendorAccountApplyStoreOwnerNotification(_w

//If we got this far, something failed, redisplay form
model.DisplayCaptcha = _captchaSettings.Enabled && _captchaSettings.ShowOnApplyVendorPage;
model.TermsOfServiceEnabled = _vendorSettings.TermsOfServiceEnabled;
model.TermsOfServicePopup = _commonSettings.PopupForTermsOfServiceLinks;

var countries = await _countryService.GetAllCountries(_workContext.WorkingLanguage.Id);
model.Address = await _mediator.Send(new GetVendorAddress() {
Language = _workContext.WorkingLanguage,
Expand Down

0 comments on commit 1f474ae

Please sign in to comment.