1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 15:16:30 +02:00

Fixes #1967 - Allow for display of page which doesn't contain a page title.

This commit is contained in:
Cameron
2016-11-07 12:09:12 -08:00
parent a3fff13d7f
commit c94655a5e9
2 changed files with 17 additions and 16 deletions

View File

@@ -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";

View File

@@ -4349,6 +4349,8 @@ class e_admin_ui extends e_admin_controller_ui
$form = e107::getAddon($plug, 'e_admin', $plug."_admin_form"); // class | false.
if(!empty($config['fields']))
{
foreach($config['fields'] as $k=>$v)
{
$v['data'] = false; // disable data-saving to db table. .
@@ -4365,8 +4367,7 @@ class e_admin_ui extends e_admin_controller_ui
$this->fields[$fieldName] = $v; // ie. x_plugin_key
}
}
if(!empty($config['batchOptions']))