Merge branch 'ent-6801-No-deberian-poder-añadirse-acciones-a-alertas-generadas-por-politicas' into 'develop'
restricted action creation on alerts created from policy See merge request artica/pandorafms!3891
This commit is contained in:
commit
aaded121a4
|
@ -882,9 +882,11 @@ foreach ($simple_alerts as $alert) {
|
||||||
['title' => __('Add action')]
|
['title' => __('Add action')]
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$data[4] .= '<a href="javascript:show_add_action(\''.$alert['id'].'\');">';
|
if ((int) $alert['id_policy_alerts'] === 0) {
|
||||||
$data[4] .= html_print_image('images/add.png', true, ['title' => __('Add action'), 'class' => 'invert_filter']);
|
$data[4] .= '<a href="javascript:show_add_action(\''.$alert['id'].'\');">';
|
||||||
$data[4] .= '</a>';
|
$data[4] .= html_print_image('images/add.png', true, ['title' => __('Add action'), 'class' => 'invert_filter']);
|
||||||
|
$data[4] .= '</a>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue