Browse Source

Issue #762: remove weird bolding.

Lacey Sanderson 6 years ago
parent
commit
f443bddd9e

+ 4 - 2
tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship_formatter.inc

@@ -82,8 +82,10 @@ class sbo__relationship_formatter extends ChadoFieldFormatter {
       }
 
       // Add bold font to the object and subject names.
-      $phrase = preg_replace("/$subject_type/", "<b>$subject_type</b>", $phrase);
-      $phrase = preg_replace("/$object_type/", "<b>$object_type</b>", $phrase);
+      // @todo add back in bolding...
+      // @todo Fix Current Bug: if type name is in the object name, wierd bolding happens.
+      // $phrase = preg_replace("/$subject_type/", "<b>$subject_type</b>", $phrase);
+      // $phrase = preg_replace("/$object_type/", "<b>$object_type</b>", $phrase);
 
       // Convert the object/subject to a link if an entity exists for it.
       if (array_key_exists('entity', $item['value']['local:relationship_object'])) {