Browse Source

One adjustment to the fix

Stephen Ficklin 6 years ago
parent
commit
a908325b3a
1 changed files with 3 additions and 1 deletions
  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.