1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Fixes #3695 Added e_admin interface and method to load data for 'list' view of admin-ui. (subject to change)

This commit is contained in:
Cameron
2019-03-03 12:33:20 -08:00
parent 5b9d334530
commit 4e07b87e37
5 changed files with 159 additions and 7 deletions

View File

@@ -6412,6 +6412,7 @@ var_dump($select_options);*/
foreach ($form_options as $fid => $options)
{
/** @var e_tree_model $tree_model */
$tree_model = $tree_models[$fid];
$tree = $tree_model->getTree();
$total = $tree_model->getTotal();
@@ -6457,9 +6458,11 @@ var_dump($select_options);*/
}
else
{
/** @var e_model $model */
foreach($tree as $model)
{
// $model->set('x_canonical_url', 'whatever');
// var_dump($model);
e107::setRegistry('core/adminUI/currentListModel', $model);
$text .= $this->renderTableRow($fields, $current_fields, $model->getData(), $options['pid']);
}