Преглед на файлове

Issue #762: remove weird bolding.

Lacey Sanderson преди 6 години
родител
ревизия
f443bddd9e
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      tripal_chado/includes/TripalFields/sbo__relationship/sbo__relationship_formatter.inc

+ 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'])) {