Skip to content

Commit

Permalink
Merge pull request #2656 from oat-sa/fix/REL-1909/pci-identifier-in-l…
Browse files Browse the repository at this point in the history
…ocal

fix: pci filename is used as identifier, not path
  • Loading branch information
augustas authored Jan 9, 2025
2 parents 4a4fe54 + 1ee1697 commit 996b6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/portableElement/storage/PortableElementRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private function getAll()

foreach ($contents as $file) {
if ($file['type'] === 'file') {
$identifier = $file['path'];
$identifier = basename($file['path']);
$elements[$identifier] = $this->get($identifier);
}
}
Expand Down

0 comments on commit 996b6af

Please sign in to comment.