summaryrefslogtreecommitdiff
path: root/lib/kolab_api_service.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-17 17:47:09 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-09-17 18:01:18 (GMT)
commite467788e6ee6b0f12ccd65dd0b419ebb18d80d60 (patch)
tree10dd3133e995c0dbc1d8874b2537360dc963e9c4 /lib/kolab_api_service.php
parent3fcb988bff8bc2ebbf9ad87ab0c3c4759051e49b (diff)
downloadkolab-wap-e467788e6ee6b0f12ccd65dd0b419ebb18d80d60.tar.gz
Skip searching for nsuniqueid if searched value is too short to be a unique identifier (Bug #2216)
Diffstat (limited to 'lib/kolab_api_service.php')
-rw-r--r--lib/kolab_api_service.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index a154f7d..5ba4109 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -504,6 +504,7 @@ abstract class kolab_api_service
$attrs = array_merge($attrs, $extra_attrs);
}
}
+
// Replace unique attribute with 'id' key
$attrs['id'] = $attrs[$unique_attr];
unset($attrs[$unique_attr]);