mirror of https://github.com/MISP/MISP
fix: [attributes] type field added to editable fields
parent
b5437eda1d
commit
b38878b963
|
@ -54,6 +54,7 @@ class Attribute extends AppModel
|
||||||
const EDITABLE_FIELDS = [
|
const EDITABLE_FIELDS = [
|
||||||
'timestamp',
|
'timestamp',
|
||||||
'category',
|
'category',
|
||||||
|
'type',
|
||||||
'value',
|
'value',
|
||||||
'value1',
|
'value1',
|
||||||
'value2',
|
'value2',
|
||||||
|
@ -620,7 +621,6 @@ class Attribute extends AppModel
|
||||||
}
|
}
|
||||||
|
|
||||||
$attribute = $this->beforeValidateMassage($attribute);
|
$attribute = $this->beforeValidateMassage($attribute);
|
||||||
|
|
||||||
// return true, otherwise the object cannot be saved
|
// return true, otherwise the object cannot be saved
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue