Allow increasing the version in system folders

prebuild-update
Melanie 2010-09-02 00:04:17 +01:00
parent 7efe7feef5
commit 203b7de266
1 changed files with 7 additions and 1 deletions

View File

@ -309,7 +309,13 @@ namespace OpenSim.Services.InventoryService
return AddFolder(folder);
if (check.Type != -1 || xFolder.type != -1)
return false;
{
if (xFolder.version > check.Version)
return false;
check.Version = xFolder.version;
xFolder = ConvertFromOpenSim(check);
return m_Database.StoreFolder(xFolder);
}
if (xFolder.version < check.Version)
xFolder.version = check.Version;