-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
During creation of Media still categoryselect prepersist problem #464
Comments
Please try to comment this line: https://github.com/zikula/core/blob/1.3.6/src/lib/Zikula/Form/Plugin/CategorySelector.php#L263 |
For test, or would that be a general thing ? It does work indeed, this now makes medium entity creation directly and from a collection work 👍 That would be a solution in general for 1.3.6 then for these kind of problems with category selector. |
I think I will do the following:
|
A possible problem/drawback is that this could prevent saving categories in older non-Doctrine modules. |
Can you distuinguish between those in the CategorySelector itself ? Probably not. There are of course still several non-Doctrine modules out there, certainly for Core 136. That do use category selection. |
We can distinguish as the category selector knows different modes. This issue affects only the doctrine2 mode 😄 |
I see that the category selection in News and Content work fine still after this update. So those are not affected at all. That makes this change for the "old" DBUtil modules easier. |
This PR was merged into zikula:1.3 branch. Discussion ---------- Avoid flush by category selector | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | Guite/MostGenerator#464 | Refs tickets | | License | MIT | Doc PR | Commits ------- b52f4e3 Avoid flush by category selector Guite
Hi,
During creation of Media in SimpleMedia2 I still get some errors.
This is not when I create a medium directly, but only when I create a medium via a collection. Then this error pops up.
commenting out the category selection int eh medium/edit.tpl template the works and removes this error. See also #321
You said there
It looks like the category selector tries to persist things before the form handler has prepared relations.
What can I do/check to make this work then ?
The text was updated successfully, but these errors were encountered: