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:
@@ -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']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user