1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Custom Fields fixes.

This commit is contained in:
Cameron
2017-01-25 10:30:28 -08:00
parent 46cacf5e3f
commit d776d116dc
3 changed files with 11 additions and 91 deletions

View File

@@ -55,6 +55,8 @@
$this->_config = e107::unserialize($data);
e107::getDebug()->log($this->_config);
return $this;
}
@@ -311,11 +313,10 @@
$ui->addTab($tabKey, $this->_tab[$tabKey]);
foreach($this->_config as $k=>$fld)
foreach($this->_config as $key=>$fld)
{
$fld['tab'] = $tabKey;
$fld['data'] = false;
$key = $fld['key'];
if($fld['type'] === 'icon')
{
@@ -380,10 +381,9 @@
return $postData;
}
$newdata = $postData[$fieldname];
$new = array();
foreach($newdata as $fields)
foreach($postData[$fieldname] as $fields)
{
if(empty($fields['key']) || empty($fields['type']))
{
@@ -398,7 +398,9 @@
}
return $new;
$postData[$fieldname] = $new;
return $postData;
}