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

[Workflows] Additional field of type "user" has no entries #4922

Open
BlackbitNeueMedien opened this issue Sep 3, 2019 · 0 comments

Comments

@BlackbitNeueMedien
Copy link
Contributor

commented Sep 3, 2019

When adding an additional field of type "user" to a transition, the overlay shows only an empty select field.

As a quick fix, I have modified the enrichNotes method in ActionsButtonService, but I don't know of that would be the correct place for this change. I have added this:

if (!empty($notes['additionalFields'])) {
    foreach ($notes['additionalFields'] as $key => $additionalField) {
        if ($additionalField['fieldType'] === 'user') {
            $def = new \Pimcore\Model\DataObject\ClassDefinition\Data\User();
            $def->configureOptions();

            $notes['additionalFields'][$key]['fieldTypeSettings']['options'] = $def->getOptions();
        }
    }
}

This could also go to the NotesAwareTrait instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.