1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Issue #2146 - Fix for theme-manager after model refactoring.

This commit is contained in:
Cameron
2019-06-04 10:48:56 -07:00
parent f0f6eb5d73
commit ca1748df8d
2 changed files with 9 additions and 2 deletions

View File

@@ -721,7 +721,7 @@ class theme_admin_tree_model extends e_tree_model
* Load data from theme meta file.
* @param bool $force
*/
function load($force=false)
function loadBatch($force=false)
{
$themeList = e107::getTheme()->getList();
$newArray = array();
@@ -786,7 +786,7 @@ class theme_admin_online_tree_model extends e_tree_model
* Load data from theme meta file.
* @param bool $force
*/
function load($force=false)
function loadBatch($force=false)
{
$themeList = e107::getTheme()->getList();

View File

@@ -4816,9 +4816,16 @@ var_dump($select_options);*/
break;
}
if(!empty($attributes['grid']) && empty($attributes['type']))
{
return null;
}
if(empty($attributes['type']))
{
e107::getDebug()->log("Field '".$field."' is missing a value for 'type'.");
// e107::getDebug()->log($value);
// e107::getDebug()->log($attributes);
}