Fix for #4259 Localizer Null

removed the override string Title as it will be set Localized in the OnInitialized using SetModuleTitle base method.
This commit is contained in:
Leigh Pointer 2024-05-16 10:22:37 +02:00
parent a54e6e7c4b
commit 4afb2ef2b8

View File

@ -128,7 +128,6 @@
@code {
public override SecurityAccessLevel SecurityAccessLevel => SecurityAccessLevel.Edit;
public override string Title => Localizer["ModuleSettings.Title"];
private ElementReference form;
private bool validated = false;
@ -158,6 +157,7 @@
protected override void OnInitialized()
{
SetModuleTitle(Localizer["ModuleSettings.Title"]);
_module = ModuleState.ModuleDefinition.Name;
_title = ModuleState.Title;
_moduleSettingsTitle = Localizer["ModuleSettings.Heading"];
@ -174,6 +174,7 @@
_effectivedate = Utilities.UtcAsLocalDate(ModuleState.EffectiveDate);
_expirydate = Utilities.UtcAsLocalDate(ModuleState.ExpiryDate);
if (ModuleState.ModuleDefinition != null)
{
_permissionNames = ModuleState.ModuleDefinition?.PermissionNames;