mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Fixes #1967 - Allow for display of page which doesn't contain a page title.
This commit is contained in:
@@ -440,7 +440,7 @@ class page_admin_ui extends e_admin_ui
|
||||
LEFT JOIN #user AS u ON p.page_author = u.user_id
|
||||
LEFT JOIN #page_chapters AS pch ON p.page_chapter = pch.chapter_id
|
||||
LEFT JOIN #page_chapters AS pbk ON pch.chapter_parent = pbk.chapter_id
|
||||
WHERE p.page_title != '' "; // without any Order or Limit.
|
||||
WHERE (p.page_title != '' OR p.page_text != '') "; // without any Order or Limit.
|
||||
//protected $editQry = "SELECT * FROM #comments WHERE comment_id = {ID}";
|
||||
|
||||
protected $pid = "page_id";
|
||||
|
@@ -4349,24 +4349,25 @@ class e_admin_ui extends e_admin_controller_ui
|
||||
|
||||
$form = e107::getAddon($plug, 'e_admin', $plug."_admin_form"); // class | false.
|
||||
|
||||
foreach($config['fields'] as $k=>$v)
|
||||
if(!empty($config['fields']))
|
||||
{
|
||||
$v['data'] = false; // disable data-saving to db table. .
|
||||
|
||||
$fieldName = 'x_'.$plug.'_'.$k;
|
||||
|
||||
if($v['type'] == 'method' && method_exists($form,$fieldName))
|
||||
foreach($config['fields'] as $k=>$v)
|
||||
{
|
||||
$v['method'] = $plug."_admin_form::".$fieldName;
|
||||
//echo "Found method ".$fieldName." in ".$plug."_menu_form";
|
||||
//echo $form->$fieldName();
|
||||
$v['data'] = false; // disable data-saving to db table. .
|
||||
|
||||
$fieldName = 'x_'.$plug.'_'.$k;
|
||||
|
||||
if($v['type'] == 'method' && method_exists($form,$fieldName))
|
||||
{
|
||||
$v['method'] = $plug."_admin_form::".$fieldName;
|
||||
//echo "Found method ".$fieldName." in ".$plug."_menu_form";
|
||||
//echo $form->$fieldName();
|
||||
}
|
||||
|
||||
|
||||
$this->fields[$fieldName] = $v; // ie. x_plugin_key
|
||||
|
||||
}
|
||||
|
||||
|
||||
$this->fields[$fieldName] = $v; // ie. x_plugin_key
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(!empty($config['batchOptions']))
|
||||
|
Reference in New Issue
Block a user