Sfoglia il codice sorgente

Removed match_part from parent/child variables in the alignment preprocess function

spficklin 12 anni fa
parent
commit
d7e679c118
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      tripal_feature/tripal_feature.module

+ 3 - 2
tripal_feature/tripal_feature.module

@@ -2053,6 +2053,7 @@ function tripal_feature_preprocess_tripal_feature_relationships(&$variables) {
  * @ingroup tripal_feature
  */
 function tripal_feature_preprocess_tripal_feature_alignments(&$variables) {
+  
   // we want to provide a new variable that contains the matched features.
   $feature = $variables['node']->feature;
   $feature = tripal_core_expand_chado_vars($feature, 'table', 'featureloc');
@@ -2083,7 +2084,7 @@ function tripal_feature_preprocess_tripal_feature_alignments(&$variables) {
   $alignments = array();
   foreach ($pfeaturelocs as $featureloc) {
      // if type is a 'match' then ignore it. We will handle those below
-     if (preg_match('/(^match$|^.*?_match)$/', $featureloc->feature_id->type_id->name)) {
+     if (preg_match('/(^match$|^.*?_match|match_part)$/', $featureloc->feature_id->type_id->name)) {
         continue;
      }
      $alignment = new stdClass();
@@ -2099,7 +2100,7 @@ function tripal_feature_preprocess_tripal_feature_alignments(&$variables) {
   }
   foreach ($cfeaturelocs as $featureloc) {
      // if type is a 'match' then ignore it. We will handle those below
-     if (preg_match('/(^match$|^.*?_match)$/', $featureloc->feature_id->type_id->name)) {
+     if (preg_match('/(^match$|^.*?_match|match_part)$/', $featureloc->feature_id->type_id->name)) {
         continue;
      }
      $alignment = new stdClass();