From f09a246392db4bc41951c9636cc18a973a882444 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 28 Nov 2016 00:49:46 +0100 Subject: [PATCH] process/show: failsafe process rendering --- application/views/scripts/process/show.phtml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/application/views/scripts/process/show.phtml b/application/views/scripts/process/show.phtml index bc23501..ffae377 100644 --- a/application/views/scripts/process/show.phtml +++ b/application/views/scripts/process/show.phtml @@ -51,7 +51,20 @@ use Icinga\Module\Businessprocess\BusinessProcess;
-bp->renderHtml($this) ?> +bp->renderHtml($this); +} catch (Exception $e) { + printf( + '', + $this->translate('Error'), + $this->escape($e->getMessage()) + ); +} + + +?> bpconfig->isLocked()): ?> bp instanceof BusinessProcess): /* do not render when showing subtree */ ?> bp->renderUnbound($this) ?>