notes.phtml: Load notes from shareables and user preferences

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-07 10:54:56 +02:00
parent e27aa04c4b
commit a1b219f97d
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@
use Icinga\Web\Navigation\Navigation;
$navigation = new Navigation();
$navigation->load($object->getType() . '-note');
foreach ($navigation as $item) {
$item->setObject($object);
}
$notes = trim($object->getNotes());
if ($notes) {