From 69a70242b06f527bf7126acd19ba37dcbc021ebc Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 11 Jan 2023 11:58:15 +0100 Subject: [PATCH] move record type further up in form --- views/bootstrap/class.Search.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 43e8992f1..9f919b609 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -785,6 +785,22 @@ function typeahead() { /* {{{ */ ) ); } + if(!isset($facets['record_type'])) { + $options = array(); + $options[] = array('document', getMLText('document'), $record_type && in_array('document', $record_type)); + $options[] = array('folder', getMLText('folder'), $record_type && in_array('folder', $record_type)); + $this->formField( + getMLText("record_type"), + array( + 'element'=>'select', + 'class'=>'chzn-select', + 'name'=>'record_type[]', + 'multiple'=>true, + 'attributes'=>array(array('data-placeholder', getMLText('select_record_type'))), + 'options'=>$options + ) + ); + } if(!isset($facets['category'])) { $tmpcatids = array(); foreach($categories as $tmpcat) @@ -832,22 +848,6 @@ function typeahead() { /* {{{ */ ) ); } - if(!isset($facets['record_type'])) { - $options = array(); - $options[] = array('document', getMLText('document'), $record_type && in_array('document', $record_type)); - $options[] = array('folder', getMLText('folder'), $record_type && in_array('folder', $record_type)); - $this->formField( - getMLText("record_type"), - array( - 'element'=>'select', - 'class'=>'chzn-select', - 'name'=>'record_type[]', - 'multiple'=>true, - 'attributes'=>array(array('data-placeholder', getMLText('select_record_type'))), - 'options'=>$options - ) - ); - } if($facets) { foreach($facets as $facetname=>$values) {