mirror of https://github.com/MISP/MISP
Merge branch '2.4' of github.com:MISP/MISP into feature-report-from-event
commit
c8462c5791
|
@ -3,7 +3,8 @@
|
|||
class TextExport
|
||||
{
|
||||
public $additional_params = array(
|
||||
'flatten' => 1
|
||||
'flatten' => 1,
|
||||
'group' => 'Attribute.value'
|
||||
);
|
||||
|
||||
public function handler($data, $options = array())
|
||||
|
|
|
@ -3439,7 +3439,7 @@ class Attribute extends AppModel
|
|||
$params['conditions']['AND']['(Attribute.deleted + 0)'] = $options['deleted'];
|
||||
}
|
||||
if (isset($options['group'])) {
|
||||
$params['group'] = empty($options['group']) ? $options['group'] : false;
|
||||
$params['group'] = !empty($options['group']) ? $options['group'] : false;
|
||||
}
|
||||
// Site admin can access even unpublished event attributes if `unpublishedprivate` option is enabled
|
||||
if (!$user['Role']['perm_site_admin'] && Configure::read('MISP.unpublishedprivate')) {
|
||||
|
|
|
@ -361,7 +361,7 @@ class MispObject extends AppModel
|
|||
} else {
|
||||
foreach ($templateFields as $k => $v) {
|
||||
if (!isset($object['Object'][$k])) {
|
||||
return 'No valid template found and object lacking template information. (' . $k . ')';
|
||||
return array('template' => array(__('No valid template found and object lacking template information. (%s)', $k)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit a80da878b911e3633d88e576323e8cfec7f83e13
|
||||
Subproject commit d4ca35c25c7431f0696ab4b2289b2901b0c3f4c2
|
Loading…
Reference in New Issue