Skip to content

Commit c0a591c

Browse files
committed
[TASK] Support EXT:content_defender current Version
EXT:contend_defender 3.5.3 adds an string to cmdMaps uid of the record which sould be copied. But we need the record\'s uid for our mapping when override columnnConfiguration. s. IchHabRecht/content_defender@6acd25e
1 parent 3a75d0f commit c0a591c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Classes/ContentDefender/Xclasses/CommandMapHook.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,12 @@ protected function isRecordAllowedByRestriction(array $columnConfiguration, arra
102102
) {
103103
return true;
104104
}
105-
if (isset($this->mapping[$record['uid']])) {
105+
$recordOrigUid = (int)($record['uid'] ?? 0);
106+
if (isset($this->mapping[$recordOrigUid])) {
106107
$columnConfiguration = $this->containerColumnConfigurationService->override(
107108
$columnConfiguration,
108-
$this->mapping[$record['uid']]['containerId'],
109-
$this->mapping[$record['uid']]['colPos']
109+
$this->mapping[$recordOrigUid]['containerId'],
110+
$this->mapping[$recordOrigUid]['colPos']
110111
);
111112
}
112113
return parent::isRecordAllowedByRestriction($columnConfiguration, $record);

0 commit comments

Comments
 (0)