Skip to content
Snippets Groups Projects
Commit fb97c30d authored by Tim Steiner's avatar Tim Steiner
Browse files

Minor display error in bulletin preview when a prereq is removed or added.

parent bdef6fc8
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment