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

Solve First Save issue #10

Open
franhida opened this issue Apr 25, 2022 · 0 comments
Open

Solve First Save issue #10

franhida opened this issue Apr 25, 2022 · 0 comments

Comments

@franhida
Copy link

In order to solve the First Save issue, you could force a reload of the field (which triggers an entity save) as follows in Configuration/TCA/tx_samlauthentication_domain_model_tablemapping.php:

 'table' => [
    'exclude' => false,
    'label' => 'LLL:EXT:samlauthentication/Resources/Private/Language/locallang.xlf:tableMapping.table',
    'config' => [
    'type' => 'select',
    'itemsProcFunc' => 'DanielPfeil\\Samlauthentication\\Utility\\BackendUtility->getTables',
       'renderType' => 'selectSingle',
    ],
    'onChange' => 'reload'
 ],

You can review the use of the onChange property in the documentation.

Reminder

This change DOES NOT fully fixes the error since the reload is triggered when the value of the select changes.
If the value of the select is the selected by default the save will not be triggered.

Sincerely,
franhida.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant