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('LogableBehavior', 'Assets.models/behaviors');
|
||||
|
||||
class AppModel extends Model {
|
||||
|
||||
public $name;
|
||||
|
@ -558,7 +557,7 @@ class AppModel extends Model {
|
|||
}
|
||||
$this->__dropIndex('attribute_tags', 'attribute_id');
|
||||
$this->__dropIndex('attribute_tags', 'tag_id');
|
||||
break;
|
||||
break;
|
||||
case 'fixNonEmptySharingGroupID':
|
||||
$sqlArray[] = 'UPDATE `events` 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 {
|
||||
$this->Attribute->create();
|
||||
}
|
||||
} else {
|
||||
$this->Attribute->create();
|
||||
}
|
||||
$data['Event']['Attribute'][$k]['event_id'] = $this->id;
|
||||
if ($data['Event']['Attribute'][$k]['distribution'] == 4) {
|
||||
|
|
Loading…
Reference in New Issue