Skip to content

Commit

Permalink
Fix empty css class fails in PHP 8.1 on preg_match null
Browse files Browse the repository at this point in the history
  • Loading branch information
Pecina Ondřej committed Oct 20, 2022
1 parent 0db2ba7 commit 6fb67e7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ protected function _beforeToHtml()
'title' => __('Stock & Conditions'),
'active' => true,
'group_code' => self::BASIC_TAB_GROUP_CODE,
'content' => $this->getChildHtml('main')
'content' => $this->getChildHtml('main'),
'class' => ''
]
);

Expand All @@ -80,9 +81,9 @@ protected function _beforeToHtml()
[
'label' => __('Variants & Types'),
'title' => __('Variants & Types'),
// 'active' => true,
'group_code' => self::ADVANCED_TAB_GROUP_CODE,
'content' => $this->getChildHtml('types')
'content' => $this->getChildHtml('types'),
'class' => ''
]
);

Expand All @@ -91,10 +92,10 @@ protected function _beforeToHtml()
[
'label' => __('Visibility'),
'title' => __('Visibility'),
// 'active' => true,
'group_code' => self::BASIC_TAB_GROUP_CODE,
'content' => $this->getChildHtml('visibility')
]
'content' => $this->getChildHtml('visibility'),
'class' => ''
]
);

return parent::_beforeToHtml();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,18 @@ protected function _beforeToHtml()
'title' => __('Attributes Mapping'),
'active' => true,
'group_code' => self::BASIC_TAB_GROUP_CODE,
'content' => $this->getChildHtml('main')
'content' => $this->getChildHtml('main'),
'class' => ''
]
);
$this->addTab(
'shipping',
[
'label' => __('Shipping Cost'),
'title' => __('Shipping Cost'),
//'active' => true,
'group_code' => self::BASIC_TAB_GROUP_CODE,
'content' => $this->getChildHtml('shipping_cost')
'content' => $this->getChildHtml('shipping_cost'),
'class' => ''
]
);

Expand All @@ -90,9 +91,9 @@ protected function _beforeToHtml()
[
'label' => __('Stock Status Values'),
'title' => __('Stock Status Values'),
//'active' => true,
'group_code' => self::ADVANCED_TAB_GROUP_CODE,
'content' => $this->getChildHtml('stock')
'content' => $this->getChildHtml('stock'),
'class' => ''
]
);

Expand All @@ -101,9 +102,9 @@ protected function _beforeToHtml()
[
'label' => __('Price and Date'),
'title' => __('Price and Date'),
//'active' => true,
'group_code' => self::ADVANCED_TAB_GROUP_CODE,
'content' => $this->getChildHtml('price')
'content' => $this->getChildHtml('price'),
'class' => ''
]
);

Expand All @@ -112,9 +113,9 @@ protected function _beforeToHtml()
[
'label' => __('Feed File'),
'title' => __('Feed File'),
//'active' => true,
'group_code' => self::ADVANCED_TAB_GROUP_CODE,
'content' => $this->getChildHtml('file')
'content' => $this->getChildHtml('file'),
'class' => ''
]
);

Expand All @@ -123,9 +124,9 @@ protected function _beforeToHtml()
[
'label' => __('Sort Products'),
'title' => __('Sort Products'),
//'active' => true,
'group_code' => self::ADVANCED_TAB_GROUP_CODE,
'content' => $this->getChildHtml('sort')
'content' => $this->getChildHtml('sort'),
'class' => ''
]
);

Expand All @@ -134,9 +135,9 @@ protected function _beforeToHtml()
[
'label' => __('Category'),
'title' => __('Category'),
//'active' => true,
'content' => $this->getChildHtml('category'),
'group_code' => self::ADVANCED_TAB_GROUP_CODE
'group_code' => self::ADVANCED_TAB_GROUP_CODE,
'class' => ''
]
);

Expand Down

0 comments on commit 6fb67e7

Please sign in to comment.