mirror of https://github.com/MISP/MISP
Merge branch '2.4' of https://github.com/MISP/MISP into 2.4
commit
b74548185a
|
@ -3937,7 +3937,7 @@ class EventsController extends AppController {
|
|||
$importComment = $result['comment'];
|
||||
}
|
||||
else {
|
||||
$importComment = 'Enriched via the ' . $module . ' module';
|
||||
$importComment = $attribute[0]['Attribute']['value'] . ': Enriched via the ' . $module . ' module';
|
||||
}
|
||||
$typeCategoryMapping = array();
|
||||
foreach ($this->Event->Attribute->categoryDefinitions as $k => $cat) {
|
||||
|
|
|
@ -1710,7 +1710,7 @@ class Attribute extends AppModel {
|
|||
$intel = array();
|
||||
foreach ($types as $type) {
|
||||
//restricting to non-private or same org if the user is not a site-admin.
|
||||
$conditions['AND'] = array('Attribute.to_ids =' => 1, 'Event.published =' => 1);
|
||||
$conditions['AND'] = array('Attribute.to_ids' => 1, 'Event.published' => 1);
|
||||
if ($from) $conditions['AND']['Event.date >='] = $from;
|
||||
if ($to) $conditions['AND']['Event.date <='] = $to;
|
||||
if ($last) $conditions['AND']['Event.publish_timestamp >='] = $last;
|
||||
|
|
Loading…
Reference in New Issue