// fixed bug property currentIndex

This commit is contained in:
lLefevre
2011-10-17 08:32:31 +00:00
parent 2184ec1197
commit ea5db2d23c
2 changed files with 6 additions and 5 deletions
+1
View File
@@ -83,6 +83,7 @@ class HelperFormCore extends Helper
public function getFieldsRequired() public function getFieldsRequired()
{ {
if (isset($this->fields_form['input']))
foreach ($this->fields_form['input'] as $input) foreach ($this->fields_form['input'] as $input)
if (array_key_exists('required', $input) && $input['required']) if (array_key_exists('required', $input) && $input['required'])
return true; return true;
@@ -146,7 +146,7 @@ class AdminRequestSqlControllerCore extends AdminController
$smarty = $this->context->smarty; $smarty = $this->context->smarty;
if ($this->display != 'edit' && $this->display != 'add') if ($this->display != 'edit' && $this->display != 'add' && $this->display != 'view')
$this->display = 'list'; $this->display = 'list';
switch ($this->display) switch ($this->display)