diff --git a/library/App/View/Helper/BulletinEntryDiff.php b/library/App/View/Helper/BulletinEntryDiff.php index c29a50b5fed65f977c475d0e8be8be456b99964a..b2c780e8b9cf9ebca205c5bc67d4457aabe76f46 100644 --- a/library/App/View/Helper/BulletinEntryDiff.php +++ b/library/App/View/Helper/BulletinEntryDiff.php @@ -70,8 +70,14 @@ class App_View_Helper_BulletinEntryDiff $diffActivities = $this->_getDiffText($currentActivities, $proposedActivities); - - $diffPrereq = $this->_getDiffText($currentCourse->getPrerequisite(), $proposedCourse->getPrerequisite()); + if ($currentPrereq = $currentCourse->getPrerequisite()) { + $currentPrereq = 'Prereq: ' . $currentPrereq; + } + if ($proposedPrereq = $proposedCourse->getPrerequisite()) { + $proposedPrereq = 'Prereq: ' . $proposedPrereq; + } + $diffPrereq = $this->_getDiffText($currentPrereq, $proposedPrereq); + $diffNotes = $this->_getDiffText($currentCourse->getNotes(), $proposedCourse->getNotes()); $diffDescription = $this->_getDiffText($currentCourse->getDescription(), $proposedCourse->getDescription()); @@ -111,7 +117,7 @@ class App_View_Helper_BulletinEntryDiff ?> <?php if($diffPrereq != '') { ?> - Prereq: <?php echo $diffPrereq; ?> + <?php echo $diffPrereq; ?> <?php } ?> <em><?php echo $diffNotes; ?></em> </div>