resolve module installation issue where ModuleDefinition Version property was not being populated correctly

This commit is contained in:
sbwalker
2023-08-23 09:24:36 -04:00
parent da74b0ece1
commit d9948e8ee0
2 changed files with 13 additions and 9 deletions

View File

@ -123,7 +123,7 @@ namespace Oqtane.Repository
if (theme == null)
{
// new theme
theme = new Theme { ThemeName = Theme.ThemeName };
theme = new Theme { ThemeName = Theme.ThemeName, Version = Theme.Version };
_db.Theme.Add(theme);
_db.SaveChanges();
}
@ -131,6 +131,7 @@ namespace Oqtane.Repository
{
// override user customizable property values
Theme.Name = (!string.IsNullOrEmpty(theme.Name)) ? theme.Name : Theme.Name;
// remove theme from list as it is already synced
themes.Remove(theme);
}
@ -141,6 +142,7 @@ namespace Oqtane.Repository
themecontrol.Name = Theme.Name + " - " + themecontrol.Name;
}
// load db properties
Theme.ThemeId = theme.ThemeId;
Theme.CreatedBy = theme.CreatedBy;
Theme.CreatedOn = theme.CreatedOn;