mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
POS: Fix missing store branding property on form error case (#5658)
When a POS has a form, which results in an error state, the store branding property was not set. This adds the missing property and also does not render the store branding partial, in case the model property isn't present. Fixes #5655.
This commit is contained in:
@@ -516,10 +516,13 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
var store = await _appService.GetStore(app);
|
||||
var storeBlob = store.GetStoreBlob();
|
||||
|
||||
viewModel.FormName = formData.Name;
|
||||
viewModel.Form = form;
|
||||
|
||||
viewModel.FormParameters = formParameters;
|
||||
viewModel.StoreBranding = new StoreBrandingViewModel(storeBlob);
|
||||
return View("Views/UIForms/View", viewModel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user