From a6009d5957ac2db38268028a54483aff5b4f1a8d Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 11 Jun 2019 09:17:36 -0700 Subject: [PATCH] Fixes #3739 - category template default should be blank. --- e107_admin/newspost.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index 0071cd344..ac8f5a7d5 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -140,7 +140,7 @@ class news_cat_ui extends e_admin_ui 'category_meta_keywords' => array('title'=> LAN_KEYWORDS, 'type' => 'tags', 'data'=>'str', 'inline'=>true, 'width' => 'auto', 'thclass' => 'left', 'readonly'=>FALSE), 'category_sef' => array('title'=> LAN_SEFURL, 'type' => 'text', 'data'=>'str', 'inline'=>true, 'width' => 'auto', 'readonly'=>FALSE, 'writeParms'=>array('size'=>'xxlarge', 'sef'=>'category_name')), // Display name 'category_manager' => array('title'=> LAN_MANAGER,'type' => 'userclass', 'tab'=>1, 'inline'=>true, 'width' => 'auto', 'data' => 'int','batch'=>TRUE, 'filter'=>TRUE), - 'category_template' => array('title'=> LAN_TEMPLATE, 'type' => 'layouts', 'tab'=>1, 'width'=>'auto', 'thclass' => 'left', 'class'=> 'left', 'writeParms' => 'plugin=news&id=news&merge=0','help'=>'Template to use as the default view' ), + 'category_template' => array('title'=> LAN_TEMPLATE, 'type' => 'layouts', 'tab'=>1, 'width'=>'auto', 'thclass' => 'left', 'class'=> 'left', 'writeParms' => array(),'help'=>'Template to use as the default view' ), 'category_order' => array('title'=> LAN_ORDER, 'type' => 'text', 'tab'=>1, 'width' => 'auto', 'thclass' => 'right', 'class'=> 'right' ), 'options' => array('title'=> LAN_OPTIONS, 'type' => null, 'batch'=>true, 'filter'=>true, 'width' => '10%', 'forced'=>TRUE, 'thclass' => 'center last', 'class' => 'center', 'sort' => true) @@ -152,8 +152,13 @@ class news_cat_ui extends e_admin_ui function init() { + $this->fields['category_template']['writeParms'] = array('plugin' => 'news', 'id' => 'news', 'merge' => false, 'default' => '('.LAN_OPTIONAL.')'); // $this->newspost = new admin_newspost; } + + + + // function createPage() // {