mirror of https://github.com/MISP/MISP
fix: [UI] Event index tag display default setting fixed
- Resolving the fix that really wasn't...pull/4666/head
parent
dd1c756682
commit
082fa4b174
|
@ -142,7 +142,7 @@
|
|||
'required_taxonomies' => false,
|
||||
'columnised' => true,
|
||||
'static_tags_only' => 1,
|
||||
'tag_display_style' => Configure::check('MISP.full_tags_on_event_index') ? Configure::read('MISP.full_tags_on_event_index') : 2
|
||||
'tag_display_style' => Configure::check('MISP.full_tags_on_event_index') ? Configure::read('MISP.full_tags_on_event_index') : 1
|
||||
)
|
||||
)
|
||||
);
|
||||
|
|
|
@ -48,7 +48,9 @@
|
|||
$aClass = 'tag nowrap';
|
||||
$aText = trim($tag['Tag']['name']);
|
||||
if (isset($tag_display_style)) {
|
||||
if ($tag_display_style == 0) {
|
||||
if (!isset($tag_display_style) || $tag_display_style == 1) {
|
||||
// default behaviour, do nothing for now
|
||||
} else if ($tag_display_style == 2) {
|
||||
$separator_pos = strpos($aText, ':');
|
||||
if ($separator_pos !== false) {
|
||||
$aTextModified = substr($aText, $separator_pos + 1);
|
||||
|
@ -59,7 +61,7 @@
|
|||
}
|
||||
$aTextModified = h($aTextModified);
|
||||
}
|
||||
} else if ($tag_display_style == 2) {
|
||||
} else if ($tag_display_style === 0 || $tag_display_style === '0') {
|
||||
$aTextModified = ' ';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue