Browse Source

Merge branch '6.x-1.x' of git.drupal.org:sandbox/spficklin/1337878 into 6.x-1.x

spficklin 11 năm trước cách đây
mục cha
commit
5a9d900d02
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      tripal_pub/includes/pub_search.inc

+ 4 - 0
tripal_pub/includes/pub_search.inc

@@ -492,6 +492,10 @@ function tripal_pub_get_search_results($search_array, $limit, $pager_id) {
       $wargs[] = $value;
       $wargs[] = $value;
     }
+    elseif ($type_name == 'Publication Type') {
+      $where .= " $op (lower(CVT.name) $action)";
+      $wargs[] = $value;
+    }
     elseif ($type_id == 0) { //'Any Field'
       $from .= " LEFT JOIN {pubprop} PP$i ON PP$i.pub_id = P.pub_id ";
       $where .= " $op (lower(PP$i.value)  $action OR