show/activitilog: make "disabled" property visible
This commit is contained in:
parent
23090c502a
commit
7665cb2424
|
@ -55,9 +55,17 @@ class ShowController extends ActionController
|
||||||
{
|
{
|
||||||
$this->view->title = sprintf('%s config diff', $entry->object_name);
|
$this->view->title = sprintf('%s config diff', $entry->object_name);
|
||||||
$this->getTabs()->activate('diff');
|
$this->getTabs()->activate('diff');
|
||||||
|
$old = $this->oldObject($entry);
|
||||||
|
$new = $this->newObject($entry);
|
||||||
|
|
||||||
|
if ($old->disabled === 'y' && $new->disabled === 'n') {
|
||||||
|
$old = null;
|
||||||
|
} elseif ($old->disabled === 'n' && $new->disabled === 'y') {
|
||||||
|
$new = null;
|
||||||
|
}
|
||||||
$d = ConfigDiff::create(
|
$d = ConfigDiff::create(
|
||||||
$this->oldObject($entry),
|
$old,
|
||||||
$this->newObject($entry)
|
$new
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->view->output = $d->renderHtml();
|
$this->view->output = $d->renderHtml();
|
||||||
|
|
Loading…
Reference in New Issue