[-] BO : Fixed #PSFV-281 : new created tab are now set active by default, thanks to Oleacorner for the help
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11883 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -77,6 +77,10 @@ class TabCore extends ObjectModel
|
||||
public function add($autodate = true, $null_values = false)
|
||||
{
|
||||
$this->position = self::getNewLastPosition($this->id_parent);
|
||||
// if you don't precise active or not, automatically set it
|
||||
if (is_null($this->active))
|
||||
$this->active = 1;
|
||||
|
||||
if (parent::add($autodate, $null_values))
|
||||
{
|
||||
// refresh cache when adding new tab
|
||||
|
||||
Reference in New Issue
Block a user