From 18525f559db40d07c98528781d23822e73f2d46a Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Thu, 12 Jun 2025 03:16:22 +0000 Subject: [PATCH] * [bug] fix pivot init with multiple version in bi model. --- module/bi/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bi/model.php b/module/bi/model.php index e65beb94a0..f4f1312dca 100644 --- a/module/bi/model.php +++ b/module/bi/model.php @@ -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');