Przeglądaj źródła

BigInt fix for SQL (Chado v1.3). Fixed improper check for all_relationships in feature templates

Stephen Ficklin 9 lat temu
rodzic
commit
4cb057df92

+ 1 - 1
tripal_feature/api/tripal_feature.api.inc

@@ -202,7 +202,7 @@ function tripal_get_feature_sequences($feature, $options) {
   $parent_sql ='
     SELECT featureloc_id, srcname, srcfeature_id, strand, srctypename, typename,
       fmin, fmax, upstream, downstream, adjfmin, adjfmax,
-      substring(residues from cast((adjfmin + 1) as int) for cast((upstream + (fmax - fmin) + downstream) as int))  as residues,
+      substring(residues from (cast(adjfmin as int4) + 1) for cast((upstream + (fmax - fmin) + downstream) as int4))  as residues,
       genus, species
     FROM (
       SELECT

+ 1 - 1
tripal_feature/theme/tripal_feature.theme.inc

@@ -31,7 +31,7 @@ function tripal_feature_preprocess_tripal_feature_sequence(&$variables) {
   // if this feature has associated protein sequences (or others via relationships
   // then we want to make sure the relationships are added so that we can
   // show the protein sequences
-  if (!$feature->all_relationships) {
+  if (!property_exists($feature, all_relationships)) {
     $feature->all_relationships = tripal_feature_get_feature_relationships($feature);
   }
 }