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

Fix user action usage /w entity #1721

Merged
merged 5 commits into from
Dec 30, 2021
Merged

Fix user action usage /w entity #1721

merged 5 commits into from
Dec 30, 2021

Conversation

mvorisek
Copy link
Member

adjust for atk4/data#943 changes

@mvorisek mvorisek force-pushed the fix_ua_entity branch 3 times, most recently from 179c59b to e4f18dc Compare December 29, 2021 23:51
@mvorisek mvorisek changed the title Fix user action entity usage /w entity Fix user action usage /w entity Dec 30, 2021
@mvorisek mvorisek marked this pull request as ready for review December 30, 2021 12:26
@mvorisek mvorisek requested a review from ibelar December 30, 2021 12:34
@@ -86,7 +86,7 @@ public static function setupDemoActions(CountryLock $country): void
[
'caption' => 'Edit ISO3',
'description' => function (UserAction $action) {
return 'Edit ISO3 for country: ' . $action->getEntity()->getTitle();
return 'Edit ISO3 for country: ' /* TODO . $action->getEntity()->getTitle()*/;
Copy link
Member Author

@mvorisek mvorisek Dec 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

originally, (empty) entity was created when it was not set and getEntity() was called

with atk4/data@ec4a51a#diff-5588f8a6d190c5213f436c880d33b4790cf9f58d2e5f04c7b1e64a7301de15a7L228 no entity is automatically created and this was failing, no replacement avaialble, as the usage is wrong

@mvorisek mvorisek merged commit 5397f35 into develop Dec 30, 2021
@mvorisek mvorisek deleted the fix_ua_entity branch December 30, 2021 23:10
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

Successfully merging this pull request may close these issues.

1 participant