Skip to content

Commit

Permalink
Merge pull request #141 from tripal/fix-empty-collection
Browse files Browse the repository at this point in the history
Fix empty entities collection error
  • Loading branch information
almasaeed2010 authored Jan 26, 2018
2 parents 566c0e4 + 42f5902 commit fd79055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/tripal_elasticsearch.collections.form.inc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function tripal_elasticsearch_collections_form_submit($form, &$form_state) {
$query = $values['search_query'];

// get the bundle label
$bundle_label = db_query('SELECT label FROM {tripal_bundle} WHERE name=:name', [':name' => $bundle_name])->fetchField();
$bundle_label = db_query('SELECT name FROM {tripal_bundle} WHERE name=:name', [':name' => $bundle_name])->fetchField();
$entities = [];
$results = [];

Expand Down

0 comments on commit fd79055

Please sign in to comment.