mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
check if $record_type is set
This commit is contained in:
parent
627baa5cc8
commit
8c87816070
|
@ -834,8 +834,8 @@ function typeahead() { /* {{{ */
|
||||||
}
|
}
|
||||||
if(!isset($facets['record_type'])) {
|
if(!isset($facets['record_type'])) {
|
||||||
$options = array();
|
$options = array();
|
||||||
$options[] = array('document', getMLText('document'), in_array('document', $record_type));
|
$options[] = array('document', getMLText('document'), $record_type && in_array('document', $record_type));
|
||||||
$options[] = array('folder', getMLText('folder'), in_array('folder', $record_type));
|
$options[] = array('folder', getMLText('folder'), $record_type && in_array('folder', $record_type));
|
||||||
$this->formField(
|
$this->formField(
|
||||||
getMLText("record_type"),
|
getMLText("record_type"),
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user