Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Service/ContactsAddressBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function search($pattern, $searchProperties, $options) {
}

// prevents linking to contacts if UID is set
$record['isLocalSystemBook'] = true;
$record['isVirtualAddressBook'] = true;
$record[self::DAV_PROPERTY_SOURCE] = $this->cardBackend->getURI();
$result[] = $record;
}
Expand Down
4 changes: 4 additions & 0 deletions lib/Service/LdapEntryToVcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public static function convert(Entry $record, ConfigurationModel $configuration)
$mappings = array_merge(self::DEFAULT_MAPPING, $configuration->getAttributeMapping());
foreach ($mappings as $vcProperty => $lAttributes) {
$propertyName = strtoupper($vcProperty);
if ($propertyName === 'UID') {
// Ignoring UID mapping as not-relevant and could generate issues in core
continue;
}
$lAttributes = explode(',', (string)$lAttributes);
foreach ($lAttributes as $lAttribute) {
$lAttribute = trim($lAttribute);
Expand Down
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-->
<psalm
errorLevel="4"
phpVersion="8.1"
phpVersion="8.2"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
Expand Down
Loading