Skip to content

Commit bcbe3eb

Browse files
committed
Implement Item::getVariantBase()
1 parent a3f0a62 commit bcbe3eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/MetaModels/Item.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,11 @@ public function getVariants($objFilter)
301301
*/
302302
public function getVariantBase()
303303
{
304-
// TODO: Implement getVariantBase() method.
304+
if (!$this->isVariantBase()) {
305+
return $this->getMetaModel()->findById($this->get('vargroup'));
306+
}
307+
308+
return $this;
305309
}
306310

307311
/**

0 commit comments

Comments
 (0)