Skip to content

Commit

Permalink
DPM the hidden field
Browse files Browse the repository at this point in the history
  • Loading branch information
almasaeed2010 committed Feb 2, 2018
1 parent 9a32d30 commit 83219e8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions includes/tripal_elasticsearch.gene_search.form.inc
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@
* @param $form
* @param $form_state
*/
function tripal_elasticsearch_gene_search_form(
$form,
&$form_state,
$local = TRUE,
$organism = NULL,
$url_query = []
) {
function tripal_elasticsearch_gene_search_form($form, &$form_state, $local = TRUE, $organism = NULL, $url_query = []) {
$constructed_url = '';
$i = 0;
foreach ($url_query as $key => $value) {
Expand Down Expand Up @@ -160,6 +154,9 @@ function tripal_elasticsearch_gene_search_index_query_mapper($arguments) {
$genus = array_shift($organism);
$species = array_shift($organism);

dpm($genus);
dpm($species);

$queries[] = [
'query_string' => [
'fields' => ['organism_genus', 'organism_species'],
Expand Down

0 comments on commit 83219e8

Please sign in to comment.