Something went wrong while setting issue due date.
[Plugins] - fdRPCwebserive - posix force_ids is not taken into consideration correctly
Closed
[Plugins] - fdRPCwebserive - posix force_ids is not taken into consideration correctly
We need to fix : https://gitlab.fusiondirectory.org/fusiondirectory/fd-plugins/-/tree/dev/webservice/include/webservice
line 689 in method : _usetemplate
if (!empty($values['posixAccount'])) {
if (!empty($values['posixAccount']['force_ids'])) {
// Reorder array with 'force_ids' as the first key
$array = array_merge(
['force_ids' => $values['posixAccount']['force_ids']],
$values['posixAccount']
);
// Update $values['posixAccount'] with reordered array
$values['posixAccount'] = $array;
}
}
The problem is that force_ids is set after the attributes. PHP has no ordering array by default.