* [bug] fix pivot init with multiple version in bi model.

This commit is contained in:
qixinzhi
2025-06-12 06:45:10 +00:00
parent f9d4f348b3
commit 18525f559d
+1 -1
View File
@@ -838,7 +838,7 @@ class biModel extends model
$pivotSpecExists = $this->dao->select('pivot,version')->from(TABLE_PIVOTSPEC)->where('pivot')->eq($pivot->id)->andWhere('version')->eq($pivot->version)->fetch();
list($pivot, $pivotSpec, $drills) = $this->preparePivotObject($pivot);
if(!$pivotExists)
if(!$pivotExists && $pivot->version == '1')
{
$pivot->createdBy = 'system';
$pivot->group = $this->getCorrectGroup($pivot->group, 'pivot');