fix: [Unpublish] variable not set when not in event context (i.e.

revise_object)
pull/4033/head
mokaddem 2019-01-18 09:47:33 +01:00
parent bfdd40cfed
commit 2c79966448
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@
'function' => 'publishPopup',
'params' => array($event['Event']['id'], 'unpublish')
),
'class' => (1 == $event['Event']['published'] && $mayModify) ? '' : 'hidden',
'class' => (isset($event['Event']['published']) && (1 == $event['Event']['published'] && $mayModify)) ? '' : 'hidden',
'text' => __('Unpublish')
));
if (Configure::read('MISP.delegation')) {