mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-16 01:32:53 -05:00
process/show: failsafe process rendering
This commit is contained in:
parent
281b3286bd
commit
f09a246392
1 changed files with 14 additions and 1 deletions
|
|
@ -51,7 +51,20 @@ use Icinga\Module\Businessprocess\BusinessProcess;
|
|||
</ul>
|
||||
<?php endif ?>
|
||||
<div id="<?= $this->bp->getHtmlId() ?>" class="bp">
|
||||
<?= $this->bp->renderHtml($this) ?>
|
||||
<?php
|
||||
|
||||
try {
|
||||
echo $this->bp->renderHtml($this);
|
||||
} catch (Exception $e) {
|
||||
printf(
|
||||
'<ul class="error"><li>%s: %s</li></ul>',
|
||||
$this->translate('Error'),
|
||||
$this->escape($e->getMessage())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<?php if (! $this->bpconfig->isLocked()): ?>
|
||||
<?php if ($this->bp instanceof BusinessProcess): /* do not render when showing subtree */ ?>
|
||||
<?= $this->bp->renderUnbound($this) ?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue