Update: Allow the version to increase only

prebuild-update
Melanie 2010-09-02 00:02:07 +01:00
parent 93edc75147
commit 7efe7feef5
1 changed files with 2 additions and 1 deletions

View File

@ -311,7 +311,8 @@ namespace OpenSim.Services.InventoryService
if (check.Type != -1 || xFolder.type != -1)
return false;
xFolder.version = check.Version;
if (xFolder.version < check.Version)
xFolder.version = check.Version;
xFolder.folderID = check.ID;
return m_Database.StoreFolder(xFolder);