* [bug#61181,done,0.3h] link all object's branch to charter.

This commit is contained in:
liumengyi
2025-04-03 15:49:30 +08:00
committed by 刘刚
parent 3e8f4dc1a0
commit db6f385e3e
+7 -3
View File
@@ -10916,9 +10916,13 @@ class upgradeModel extends model
{
if(strpos(',' . $charterObject->{$objectType} . ',', ",{$objectID},") === false) continue;
$charterProduct->branch = $object->branch;
$charterProduct->{$objectType} = $objectID;
$this->dao->replace(TABLE_CHARTERPRODUCT)->data($charterProduct)->exec();
$branches = explode(',', $object->branch);
foreach($branches as $branch)
{
$charterProduct->branch = $branch;
$charterProduct->{$objectType} = $objectID;
$this->dao->replace(TABLE_CHARTERPRODUCT)->data($charterProduct)->exec();
}
}
}
}