Skip to content

Commit

Permalink
#4456 Fixed Country and State drop down value disappearing when editi…
Browse files Browse the repository at this point in the history
…ng affiliate
  • Loading branch information
Marianna Koroleva authored and Marianna Koroleva committed Apr 5, 2020
1 parent b55bfd2 commit 00e0756
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,18 +235,17 @@ public virtual AffiliateModel PrepareAffiliateModel(AffiliateModel model, Affili
PrepareAffiliatedOrderSearchModel(model.AffiliatedOrderSearchModel, affiliate);
PrepareAffiliatedCustomerSearchModel(model.AffiliatedCustomerSearchModel, affiliate);

//prepare address model
var address = _addressService.GetAddressById(affiliate.AddressId);
model.Address = address.ToModel(model.Address);
PrepareAddressModel(model.Address, address);

//whether to fill in some of properties
if (!excludeProperties)
{
model.AdminComment = affiliate.AdminComment;
model.FriendlyUrlName = affiliate.FriendlyUrlName;
model.Active = affiliate.Active;
model.Address = address.ToModel(model.Address);

//prepare address model
PrepareAddressModel(model.Address, address);
}
}
else
Expand Down

0 comments on commit 00e0756

Please sign in to comment.