// fix bug toolbar_fix in AdminStoresController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9921 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-11-07 10:45:23 +00:00
parent d0e02651c5
commit ce8b796598
4 changed files with 69 additions and 427 deletions
+7 -6
View File
@@ -32,8 +32,6 @@ class AdminStoresControllerCore extends AdminController
$this->table = 'store';
$this->className = 'Store';
$this->lang = false;
$this->addRowAction('edit');
$this->addRowAction('delete');
$this->requiredDatabase = true;
$this->context = Context::getContext();
@@ -41,8 +39,6 @@ class AdminStoresControllerCore extends AdminController
if (!Tools::getValue('realedit'))
$this->deleted = false;
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->fieldImageSettings = array(
'name' => 'image',
'dir' => 'st'
@@ -118,6 +114,11 @@ class AdminStoresControllerCore extends AdminController
public function initList()
{
$this->addRowAction('edit');
$this->addRowAction('delete');
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->_select = 'cl.`name` country, st.`name` state';
$this->_join = '
LEFT JOIN `'._DB_PREFIX_.'country_lang` cl
@@ -155,7 +156,7 @@ class AdminStoresControllerCore extends AdminController
),
array(
'type' => 'text',
'label' => $this->l('Address:'),
'label' => $this->l('Address (2):'),
'name' => 'address2',
'size' => 33
),
@@ -195,7 +196,7 @@ class AdminStoresControllerCore extends AdminController
)
),
array(
'type' => 'text',
'type' => 'latitude',
'label' => $this->l('Latitude / Longitude:'),
'name' => 'latitude',
'required' => true,