mirror of https://github.com/MISP/MISP
fix: [dashboard:saveTemplate] Prevent array re-indexing causing issue
with HTML select's option valuepull/5705/head
parent
f3f468d90d
commit
2e2cb08a0b
|
@ -270,10 +270,10 @@ class DashboardsController extends AppController
|
|||
$permFlags[$perm_flag] = $perm_data['text'];
|
||||
}
|
||||
$options = array(
|
||||
'org_id' => array_merge(
|
||||
'org_id' => (
|
||||
array(
|
||||
0 => __('Unrestricted')
|
||||
),
|
||||
) + // avoid re-indexing
|
||||
$this->User->Organisation->find('list', array(
|
||||
'fields' => array(
|
||||
'Organisation.id', 'Organisation.name'
|
||||
|
@ -281,10 +281,10 @@ class DashboardsController extends AppController
|
|||
'conditions' => array('Organisation.local' => 1)
|
||||
))
|
||||
),
|
||||
'role_id' => array_merge(
|
||||
'role_id' => (
|
||||
array(
|
||||
0 => __('Unrestricted')
|
||||
),
|
||||
) + // avoid re-indexing
|
||||
$this->User->Role->find('list', array(
|
||||
'fields' => array(
|
||||
'Role.id', 'Role.name'
|
||||
|
|
Loading…
Reference in New Issue