// fixed bug property currentIndex
This commit is contained in:
@@ -83,9 +83,10 @@ class HelperFormCore extends Helper
|
|||||||
|
|
||||||
public function getFieldsRequired()
|
public function getFieldsRequired()
|
||||||
{
|
{
|
||||||
foreach ($this->fields_form['input'] as $input)
|
if (isset($this->fields_form['input']))
|
||||||
if (array_key_exists('required', $input) && $input['required'])
|
foreach ($this->fields_form['input'] as $input)
|
||||||
return true;
|
if (array_key_exists('required', $input) && $input['required'])
|
||||||
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -145,8 +145,8 @@ 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user