mirror of https://github.com/MISP/MISP
fix: [Unpublish] variable not set when not in event context (i.e.
revise_object)pull/4033/head
parent
bfdd40cfed
commit
2c79966448
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue