Skip to content

Commit a560edc

Browse files
Fix react music festival render wrong form non master version
2 parents 1fbeb3b + 6967e0d commit a560edc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

samples/musicfestival-backend-dotnet/Startup.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Runtime.InteropServices;
22
using EPiServer.Cms.Shell;
3+
using EPiServer.Cms.Shell.UI;
34
using EPiServer.Cms.UI.AspNetIdentity;
45
using EPiServer.ContentApi.Cms;
56
using EPiServer.ContentApi.Core.DependencyInjection;
@@ -59,7 +60,8 @@ public void ConfigureServices(IServiceCollection services)
5960
services
6061
.AddCmsAspNetIdentity<ApplicationUser>()
6162
.AddCms()
62-
.AddAdminUserRegistration()
63+
.AddAdminUserRegistration(options => options.Behavior = RegisterAdminUserBehaviors.Enabled |
64+
RegisterAdminUserBehaviors.LocalRequestsOnly)
6365
.AddEmbeddedLocalization<Program>()
6466
.ConfigureForExternalTemplates()
6567
.Configure<ExternalApplicationOptions>(options => options.OptimizeForDelivery = true)

samples/musicfestival-frontend-react/src/pages/BuyTicketPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function BuyTicketPage({ content }: BuyTicketPageProps) {
5656
<Form
5757
key={key}
5858
formKey={key}
59-
language={c.ContentLink.Ex}
59+
language={c.ContentLink.Expanded.Language.Name}
6060
baseUrl={process.env.REACT_APP_HEADLESS_FORM_BASE_URL ?? "/"}
6161
identityInfo={identityInfo}
6262
history={history}

0 commit comments

Comments
 (0)