Skip to content

Commit

Permalink
Merge branch 'b-8.0.x-title_handling_in_attribute' into b-8.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieg committed Sep 4, 2024
2 parents 05002dd + 2f11747 commit 436adfe
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions source/Application/Model/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ class Attribute extends \OxidEsales\Eshop\Core\Model\MultiLanguageModel
*/
protected $_sActiveValue = null;

/**
* Attribute title
*
* @deprecated since v7.2.0 use 'oxtitle' field of the model instead
*
* @var string
*/
protected $_sTitle = null;

/**
* Attribute values
*
Expand Down Expand Up @@ -212,7 +203,7 @@ public function getAttributeAssigns($sArtId)
*/
public function setTitle($sTitle)
{
$this->_sTitle = Str::getStr()->htmlspecialchars($sTitle);
$this->setFieldData('oxtitle', Str::getStr()->htmlspecialchars($sTitle));
}

/**
Expand All @@ -222,7 +213,7 @@ public function setTitle($sTitle)
*/
public function getTitle()
{
return $this->_sTitle;
return $this->getFieldData('oxtitle');
}

/**
Expand Down

0 comments on commit 436adfe

Please sign in to comment.