Kaynağa Gözat

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

spficklin 12 yıl önce
ebeveyn
işleme
7e93be4c46
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      tripal_pub/includes/pub_search.inc

+ 1 - 1
tripal_pub/includes/pub_search.inc

@@ -467,7 +467,7 @@ function tripal_pub_get_search_results($search_array, $limit, $pager_id) {
 
   }  
   if($from_year and $to_year) {
-    $where .= " AND (to_number(P.pyear,'9999') >= %d and to_number(P.pyear,'9999') <= %d) ";
+    $where .= " AND (P.pyear ~ '\d\d\d\d' AND to_number(P.pyear,'9999') >= %d AND to_number(P.pyear,'9999') <= %d) ";
     $wargs[] = $from_year;
     $wargs[] = $to_year;
   }