mirror of https://github.com/MISP/MISP
fix: Further merge fixes
parent
7b665dbb6b
commit
1e2ae2ac90
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
App::uses('Model', 'Model');
|
App::uses('Model', 'Model');
|
||||||
App::uses('LogableBehavior', 'Assets.models/behaviors');
|
App::uses('LogableBehavior', 'Assets.models/behaviors');
|
||||||
|
|
||||||
class AppModel extends Model {
|
class AppModel extends Model {
|
||||||
|
|
||||||
public $name;
|
public $name;
|
||||||
|
@ -558,7 +557,7 @@ class AppModel extends Model {
|
||||||
}
|
}
|
||||||
$this->__dropIndex('attribute_tags', 'attribute_id');
|
$this->__dropIndex('attribute_tags', 'attribute_id');
|
||||||
$this->__dropIndex('attribute_tags', 'tag_id');
|
$this->__dropIndex('attribute_tags', 'tag_id');
|
||||||
break;
|
break;
|
||||||
case 'fixNonEmptySharingGroupID':
|
case 'fixNonEmptySharingGroupID':
|
||||||
$sqlArray[] = 'UPDATE `events` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
$sqlArray[] = 'UPDATE `events` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||||
$sqlArray[] = 'UPDATE `attributes` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
$sqlArray[] = 'UPDATE `attributes` SET `sharing_group_id` = 0 WHERE `distribution` != 4;';
|
||||||
|
|
|
@ -2228,8 +2228,6 @@ class Event extends AppModel {
|
||||||
} else {
|
} else {
|
||||||
$this->Attribute->create();
|
$this->Attribute->create();
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$this->Attribute->create();
|
|
||||||
}
|
}
|
||||||
$data['Event']['Attribute'][$k]['event_id'] = $this->id;
|
$data['Event']['Attribute'][$k]['event_id'] = $this->id;
|
||||||
if ($data['Event']['Attribute'][$k]['distribution'] == 4) {
|
if ($data['Event']['Attribute'][$k]['distribution'] == 4) {
|
||||||
|
|
Loading…
Reference in New Issue