瀏覽代碼

One adjustment to the fix

Stephen Ficklin 6 年之前
父節點
當前提交
a908325b3a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      tripal/includes/tripal.field_storage.inc

+ 3 - 1
tripal/includes/tripal.field_storage.inc

@@ -125,7 +125,9 @@ function tripal_field_storage_query($query) {
   // records that are deleted that need purging separately so we can do nothing
   // with this.
   if (isset($query->deleted)) {
-    // do nothing.
+    // There won't ever be field data marked as deleted so just created a 
+    // condition that always evaluates to false.
+    $select->where('1=0');
   }
 
   // Perform the query and return the results.