Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117762497
D27.1775216860.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
808 B
Referenced Files
None
Subscribers
None
D27.1775216860.diff
View Options
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -360,7 +360,13 @@
if (empty($attribs[$key])) {
$result[$key] = $type_attrs['fields'][$key] = $value;
} else {
- $result[$key] = $attribs[$key] = $value;
+ if (!empty($type_attrs['auto_form_fields'][$key]['optional']) &&
+ $type_attrs['auto_form_fields'][$key]['type'] == "list") {
+
+ $result[$key] = array_unique(array_merge((array)$attribs[$key], (array)$value));
+ } else {
+ $result[$key] = $attribs[$key] = $value;
+ }
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 11:47 AM (7 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823892
Default Alt Text
D27.1775216860.diff (808 B)
Attached To
Mode
D27: Allow a defined static value to be added to, if auto_form_fields has an optional list for the item.
Attached
Detach File
Event Timeline