Merge branch 'ent-13604-selector-severity-priority-tiene-opciones-compuestas' into 'develop'
Ent 13604 selector severity priority tiene opciones compuestas See merge request artica/pandorafms!7342
This commit is contained in:
commit
b78e58d13c
|
@ -143,7 +143,7 @@ $form_filter .= '<td class="w33p">'.html_print_label_input_block(
|
|||
).'</td>';
|
||||
|
||||
$form_filter .= '<td class="w33p">'.html_print_label_input_block(
|
||||
__('Priority'),
|
||||
__('Severity'),
|
||||
html_print_select(
|
||||
get_priorities(),
|
||||
'priority',
|
||||
|
|
|
@ -127,7 +127,7 @@ $table_details->data[] = $data;
|
|||
|
||||
$priorities = get_priorities();
|
||||
|
||||
$data[0] = __('Priority');
|
||||
$data[0] = __('Severity');
|
||||
$data[1] = '<span title="'.$priorities[$template['priority']].'" class="'.get_priority_class($template['priority']).' span_priority"> </span>'.$priorities[$template['priority']];
|
||||
$table_details->data[] = $data;
|
||||
|
||||
|
|
|
@ -1235,9 +1235,9 @@ if ($step == 2) {
|
|||
);
|
||||
|
||||
$table->data[2][0] = html_print_label_input_block(
|
||||
__('Priority'),
|
||||
__('Severity'),
|
||||
html_print_select(
|
||||
get_priorities(),
|
||||
get_priorities(false, true),
|
||||
'priority',
|
||||
$priority,
|
||||
'',
|
||||
|
|
|
@ -1614,9 +1614,9 @@ if ($create_alert || $update_alert) {
|
|||
echo '</td>';
|
||||
echo '<td class="w50p">';
|
||||
echo html_print_label_input_block(
|
||||
__('Priority'),
|
||||
__('Severity'),
|
||||
html_print_select(
|
||||
get_priorities(),
|
||||
get_priorities(false, true),
|
||||
'priority',
|
||||
$priority,
|
||||
'',
|
||||
|
@ -1776,7 +1776,7 @@ if ($create_alert || $update_alert) {
|
|||
);
|
||||
|
||||
$table_filter->data[0][2] = html_print_label_input_block(
|
||||
__('Priority'),
|
||||
__('Severity'),
|
||||
html_print_select(
|
||||
get_priorities(),
|
||||
'priority_filter',
|
||||
|
|
|
@ -1404,7 +1404,7 @@ function get_event_types($id_type=false)
|
|||
*
|
||||
* @return array An array with all the priorities.
|
||||
*/
|
||||
function get_priorities($priority_param=false)
|
||||
function get_priorities($priority_param=false, $creation=false)
|
||||
{
|
||||
global $config;
|
||||
|
||||
|
@ -1416,9 +1416,12 @@ function get_priorities($priority_param=false)
|
|||
$priorities[EVENT_CRIT_WARNING] = __('Warning');
|
||||
$priorities[EVENT_CRIT_MAJOR] = __('Major');
|
||||
$priorities[EVENT_CRIT_CRITICAL] = __('Critical');
|
||||
$priorities[EVENT_CRIT_WARNING_OR_CRITICAL] = __('Warning').'/'.__('Critical');
|
||||
$priorities[EVENT_CRIT_NOT_NORMAL] = __('Not normal');
|
||||
$priorities[EVENT_CRIT_OR_NORMAL] = __('Critical').'/'.__('Normal');
|
||||
|
||||
if ($creation === false) {
|
||||
$priorities[EVENT_CRIT_WARNING_OR_CRITICAL] = __('Warning').'/'.__('Critical');
|
||||
$priorities[EVENT_CRIT_OR_NORMAL] = __('Critical').'/'.__('Normal');
|
||||
}
|
||||
|
||||
foreach ($priorities as $key => $priority) {
|
||||
$priorities[$key] = ui_print_truncate_text($priority, GENERIC_SIZE_TEXT, false, true, false);
|
||||
|
|
Loading…
Reference in New Issue