Commit d81d5f73 authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: Feat(rest) - adds OrderedArrayAttribute

Adds OrderedArrayAttribute as [] instead of string.
Showing with 1 addition and 1 deletion
+1 -1
...@@ -580,7 +580,7 @@ class fdRestService extends fdRPCService ...@@ -580,7 +580,7 @@ class fdRestService extends fdRPCService
foreach ($section['attrs'] as $attr) { foreach ($section['attrs'] as $attr) {
if ($object->attrIsReadable($attr)) { if ($object->attrIsReadable($attr)) {
// Add "" for monovalued attribute or [] for multivalued (only if the class used is SetAttribute) // Add "" for monovalued attribute or [] for multivalued (only if the class used is SetAttribute)
if (get_class($attr) == "SetAttribute") { if (get_class($attr) == "SetAttribute" || get_class($attr) == "OrderedArrayAttribute") {
$attributes[$attr->getLdapName()] = []; $attributes[$attr->getLdapName()] = [];
} else { } else {
$attributes[$attr->getLdapName()] = ""; $attributes[$attr->getLdapName()] = "";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment