Will this change to FormController causes any Potential backward compatibility? #32534
Unanswered
joomdonation
asked this question in
General
Replies: 3 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Sounds like a valid change. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The context includes the component name. It stops things in the session from different components conflicting. So whilst I understand what change you need I don't think it will work :( |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While working on this PR #32520 to support Save As Copy feature for article in the frontend, I see that the FormController could not get ID of the article back after it is created from frontend (via FormModel class). The reason is:
In most cases, it works well because we have model name the same with controller name. However, in case article is submitted from frontend, the model name is Form, not Article like the controller. The state name for storing record ID is form.id, not article.id as the controller expects
To solve that error, I changed the code in form Controller to
To me, it is a bug fix but I'm unsure if it could cause any backward compatibility since we have the original code works like that for years. Ping @wilsonge , @laoneo and others for feedback.
Beta Was this translation helpful? Give feedback.
All reactions