mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Fixes #4394 '__tabs__' was being displayed in custom fields form. Test added.
This commit is contained in:
@@ -67,7 +67,14 @@
|
||||
|
||||
if(is_array($data))
|
||||
{
|
||||
if(isset($data['__tabs__']))
|
||||
{
|
||||
$this->_tab = $data['__tabs__'];
|
||||
unset($data['__tabs__']);
|
||||
}
|
||||
|
||||
$this->_config = $data;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
@@ -305,6 +312,7 @@
|
||||
|
||||
public function renderConfigForm($name)
|
||||
{
|
||||
|
||||
$frm = e107::getForm();
|
||||
$curVal = $this->_config;
|
||||
$value = array();
|
||||
@@ -320,7 +328,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$text = "
|
||||
<div class='form-group'>
|
||||
".$frm->text('__e_customfields_tabs__', $this->_tab[$this->_tab_default], 30, array('placeholder' => 'Tab label', 'size' =>'medium', 'required' =>1))."
|
||||
|
Reference in New Issue
Block a user