Display all Grapher hooks not just the first one
refs #3473 Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
This commit is contained in:
parent
1ae2507f0e
commit
4c9dac5fb8
|
@ -1,4 +1,6 @@
|
|||
<?php if (isset($grapher)) {
|
||||
echo $grapher->getPreviewHtml($object);
|
||||
<?php if (isset($graphers)) {
|
||||
foreach ($graphers as $grapher) {
|
||||
echo $grapher->getPreviewHtml($object);
|
||||
}
|
||||
} ?>
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ abstract class MonitoredObjectController extends Controller
|
|||
$this->view->tickets = Hook::first('ticket');
|
||||
}
|
||||
if (Hook::has('grapher')) {
|
||||
$this->view->grapher = Hook::first('grapher');
|
||||
$this->view->graphers = Hook::all('grapher');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue