diff --git a/module/doc/ui/zentaolist.html.php b/module/doc/ui/zentaolist.html.php
index 2cadd23c5b..1774b5176c 100644
--- a/module/doc/ui/zentaolist.html.php
+++ b/module/doc/ui/zentaolist.html.php
@@ -13,7 +13,7 @@ set::zui();
$lowerType = strtolower($type);
include "zentaolist.{$lowerType}.html.php";
-/* include "zentaolist.customsearch.html.php"; */
+include "zentaolist.customsearch.html.php";
$isSetting = $view == 'setting';
@@ -39,7 +39,7 @@ formPanel
)
),
$fnGenerateFormRows(),
- /* $fnGenerateCustomSearch(), */
+ $fnGenerateCustomSearch(),
to::footer
(
setClass('form-actions'),
@@ -51,7 +51,8 @@ formPanel
)
),
on::change('[name=product]', "changeProduct"),
- on::click('#preview', "preview")
+ on::click('#preview', "preview"),
+ on::change('[name=condition]', "changeCondition")
);
$cols = array_values($cols);
diff --git a/module/doc/zen.php b/module/doc/zen.php
index 117fcb8ec5..828b336503 100644
--- a/module/doc/zen.php
+++ b/module/doc/zen.php
@@ -1018,6 +1018,14 @@ class docZen extends doc
}
if(!isset($session['action'])) $session['action'] = '';
+ if(!isset($session['field']))
+ {
+ $session['andor'] = array('and');
+ $session['field'] = array('');
+ $session['operator'] = array('include');
+ $session['value'] = array('');
+ }
+
$idList = '';
if(isset($session['idList']))
{