mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
show/object: render preview for stored objects only
This commit is contained in:
parent
3e54af435b
commit
72961586c5
@ -4,7 +4,10 @@
|
||||
|
||||
<div class="content">
|
||||
<?= $this->form ?>
|
||||
<pre>
|
||||
<?= $this->escape($form->getObject()) ?>
|
||||
</pre>
|
||||
<?php
|
||||
$object = $form->getObject();
|
||||
if ($object->hasBeenLoadedFromDb()) {
|
||||
echo '<pre>' . $this->escape($object) . '</pre>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user