* Fix error of display the default pivot in open source version.

This commit is contained in:
liugang
2023-04-28 02:04:55 +00:00
parent 7fc09b6e65
commit d5bddc6413
+4 -1
View File
@@ -92,10 +92,13 @@ class pivotZen extends pivot
foreach($groups as $group)
{
if($this->config->edition == 'open' && $group->grade == 1) continue;
$pivots = $this->dao->select('*')->from(TABLE_PIVOT)
->where("FIND_IN_SET($group->id, `group`)")
->andWhere('stage')->ne('draft')
->orderBy('id_desc')->fetchAll();
->orderBy('id_desc')
->fetchAll();
if($pivots)
{
foreach($pivots as $pivot) return array('pivot', 'show', "dimensionID=$dimension&groupID={$group->id}&pivotID={$pivot->id}");