Fix bug resulting in UI displaying errors (level of error reporting enabled may have been partially cause) when project object not set.

This commit is contained in:
Stephen Brooks 2013-09-18 09:56:13 +01:00
parent f5c7f85bed
commit df32fcbbd4

View file

@ -6,6 +6,7 @@
<?php endif; ?>
<?php foreach($builds as $build): ?>
<?php
switch($build->getStatus())
{
@ -37,7 +38,14 @@ switch($build->getStatus())
?>
<tr class="<?php print $cls; ?>">
<td><a href="<?= PHPCI_URL ?>build/view/<?php print $build->getId(); ?>">#<?php print str_pad($build->getId(), 6, '0', STR_PAD_LEFT); ?></a></td>
<td><a href="<?= PHPCI_URL ?>project/view/<?php print $build->getProjectId(); ?>"><?php print $build->getProject()->getTitle(); ?></a></td>
<td><a href="<?= PHPCI_URL ?>project/view/<?php print $build->getProjectId(); ?>">
<?php
if (is_object($build->getProject())) {
print $build->getProject()->getTitle();
} else {
print ' - ';
}
?></a></td>
<td><a href="<?php print $build->getCommitLink(); ?>"><?php print $build->getCommitId(); ?></a></td>
<td><a href="<?php print $build->getBranchLink(); ?>"><?php print $build->getBranch(); ?></a></td>
<td>