// Context part 25
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7794 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -234,7 +234,6 @@ echo '
|
||||
|
||||
public function display()
|
||||
{
|
||||
$context = Context::getContext();
|
||||
// Include other tab in current tab
|
||||
if ($this->includeSubTab('display', array('submitAdd2', 'add', 'update', 'view'))){}
|
||||
|
||||
@@ -252,7 +251,7 @@ echo '
|
||||
}
|
||||
elseif (isset($_GET['update'.$this->table]))
|
||||
{
|
||||
if ($this->tabAccess['edit'] === '1' OR ($this->table == 'employee' AND $context->employee->id == Tools::getValue('id_employee')))
|
||||
if ($this->tabAccess['edit'] === '1' OR ($this->table == 'employee' AND $this->context->employee->id == Tools::getValue('id_employee')))
|
||||
{
|
||||
$this->displayForm();
|
||||
if ($this->tabAccess['view'])
|
||||
@@ -268,7 +267,7 @@ echo '
|
||||
{
|
||||
$this->checkForWarning();
|
||||
|
||||
$this->getList($context->language->id);
|
||||
$this->getList($this->context->language->id);
|
||||
$this->displayList();
|
||||
|
||||
$this->displayRequiredFields();
|
||||
|
||||
Reference in New Issue
Block a user