Allow increasing the version in system folders

0.6.9-post-fixes
Melanie 2010-09-02 00:04:17 +01:00
parent 9cde4fa52b
commit 52edbf4626
1 changed files with 7 additions and 1 deletions

View File

@ -286,7 +286,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;