Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Reading of collections from database doesn't work #1317

Open
beatrycze-volk opened this issue Aug 28, 2024 · 0 comments · May be fixed by #1318
Open

[BUG] Reading of collections from database doesn't work #1317

beatrycze-volk opened this issue Aug 28, 2024 · 0 comments · May be fixed by #1318
Assignees
Labels
🐛 bug A non-security related bug.

Comments

@beatrycze-volk
Copy link
Collaborator

Description

Reading of collections from database doesn't work in MetadataController.

Expected Behavior

The collections should be read correctly from database and displayed to the frontend.

Screenshots and Examples

Argument $value is a string not and array.

    private function parseCollections(int $i, $value, array &$metadata) : void
    {
        $j = 0;
        foreach ($value as $entry) {
            $collection = $this->collectionRepository->findOneByIndexName($entry);
            if ($collection) {
                $metadata[$i]['collection'][$j] = $collection->getLabel() ? : '';
                $j++;
            }
        }
    }

Additional Context

Related to #1314 and #1308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug A non-security related bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants