Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ protected function isValidOptionTitle($title, $storeId)
if ($storeId > \Magento\Store\Model\Store::DEFAULT_STORE_ID && $title === null) {
return true;
}
if ($this->isEmpty($title)) {

// checking whether title is null and also changed is_empty to is_null
if ($title === null) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ protected function _saveValueTitles(AbstractModel $object)
$object->unsetData('title');
}

if ($object->getTitle()) {
/*** Checking whether title is not null ***/
if ($object->getTitle()!= null) {
if ($existInCurrentStore) {
if ($storeId == $object->getStoreId()) {
$where = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public function draw()
'feed' => 35,
];

if ($option['value']) {
// Checking whether option value is not null
if ($option['value']!= null) {
if (isset($option['print_value'])) {
$printValue = $option['print_value'];
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function draw()
];

// draw options value
if ($option['value']) {
if ($option['value']!= null) {
$printValue = isset(
$option['print_value']
) ? $option['print_value'] : $this->filterManager->stripTags(
Expand Down