From 59ce9437c84bd2f5fd259e973187966007ab957f Mon Sep 17 00:00:00 2001 From: Guillaume Dupuy Date: Sat, 8 Jul 2017 13:43:51 +0200 Subject: [PATCH] Swap item serial and create time properties when swapping items --HG-- branch : fix_item_group_08072017 --- code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp b/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp index 46fea9593..88b454279 100644 --- a/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp +++ b/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp @@ -2960,6 +2960,8 @@ void CDBCtrlSheet::swapSheet(CDBCtrlSheet *other) swapDBProps(getItemRMClassTypePtr(), other->getItemRMClassTypePtr()); swapDBProps(getItemRMFaberStatTypePtr(), other->getItemRMFaberStatTypePtr()); swapDBProps(getItemPrerequisitValidPtr(), other->getItemPrerequisitValidPtr()); + swapDBProps(getItemSerialPtr(), other->getItemSerialPtr()); + swapDBProps(getItemCreateTimePtr(), other->getItemCreateTimePtr()); } } @@ -3539,6 +3541,10 @@ void CDBCtrlSheet::copyAspect(CDBCtrlSheet *dest) dest->setItemRMFaberStatType(getItemRMFaberStatType()); // copy prerequisit valid flag dest->setItemPrerequisitValid(getItemPrerequisitValid()); + // copy item serial + dest->setItemSerial(getItemSerial()); + // copy item create time + dest->setItemCreateTime(getItemCreateTime()); } // if brick, sphrase or sphraseId if(isSBrick() || isSPhrase() || isSPhraseId())