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
Branches
No related tags found
No related merge requests found
...@@ -70,8 +70,14 @@ class App_View_Helper_BulletinEntryDiff ...@@ -70,8 +70,14 @@ class App_View_Helper_BulletinEntryDiff
$diffActivities = $this->_getDiffText($currentActivities, $proposedActivities); $diffActivities = $this->_getDiffText($currentActivities, $proposedActivities);
if ($currentPrereq = $currentCourse->getPrerequisite()) {
$diffPrereq = $this->_getDiffText($currentCourse->getPrerequisite(), $proposedCourse->getPrerequisite()); $currentPrereq = 'Prereq: ' . $currentPrereq;
}
if ($proposedPrereq = $proposedCourse->getPrerequisite()) {
$proposedPrereq = 'Prereq: ' . $proposedPrereq;
}
$diffPrereq = $this->_getDiffText($currentPrereq, $proposedPrereq);
$diffNotes = $this->_getDiffText($currentCourse->getNotes(), $proposedCourse->getNotes()); $diffNotes = $this->_getDiffText($currentCourse->getNotes(), $proposedCourse->getNotes());
$diffDescription = $this->_getDiffText($currentCourse->getDescription(), $proposedCourse->getDescription()); $diffDescription = $this->_getDiffText($currentCourse->getDescription(), $proposedCourse->getDescription());
...@@ -111,7 +117,7 @@ class App_View_Helper_BulletinEntryDiff ...@@ -111,7 +117,7 @@ class App_View_Helper_BulletinEntryDiff
?> ?>
<?php if($diffPrereq != '') { ?> <?php if($diffPrereq != '') { ?>
Prereq: <?php echo $diffPrereq; ?> <?php echo $diffPrereq; ?>
<?php } ?> <?php } ?>
<em><?php echo $diffNotes; ?></em> <em><?php echo $diffNotes; ?></em>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment