-
-
Notifications
You must be signed in to change notification settings - Fork 529
MODx.panel.Resource should inherit the config.url from MODx.page.UpdateResource and MODx.page.CreateResource #8767
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
Comments
Eiventeleiron submitted: Added pull request: #380 |
Eiventeleiron submitted: Assigning to opengeek for reviewing the pull request and eventually merging it. |
Eiventeleiron submitted: Attaching diff cause I never used push requests on github before and now it contains several fixes :) |
Eiventeleiron submitted: Sorry, wrong diff. Attaching new one. |
Eiventeleiron submitted: Finally get sorted all this pull request stuff. Pull request: #381 |
Merge remote-tracking branch 'Evengard/rel22bug8767' into bug-8767
Merge branch 'bug-8767' into release-2.2 * bug-8767: [modxcms#8767] add changelog entry [modxcms#8767] possible bug fix
Merge branch 'release-2.2' * release-2.2: (130 commits) Bump version for 2.2.5-pl [modxcms#8753] fixing that trivial variable error. French translation update [modxcms#8196] Changed event type for fieldChangeEvent for combo boxes [modxcms#8186] Adding FC rules checking based on reloadData. [modxcms#8790] adding a possibility to hide the new password after changing via profile reset. [modxcms#7631] add changelog entry Fix duplicate beforeSave() in modProcessorObjectCreate Italian translation for Revo 2.2.5 [modxcms#7551] adding an additional check so that the destination static file can't be an existing directory Czech translation update Correction in setting lexicon [modxcms#7654] Fix Update processor for ResourceGroup-restricted TVs Preserve backwards compatibility(add 'object' key) after objectType fix Last changes in the German translation for Revo 2.2.5 [modxcms#8767] add changelog entry Possible fix for bug [modxcms#4430] [modxcms#8767] possible bug fix [modxcms#8545] add changelog entry [modxcms#8089] add changelog entry ...
Eiventeleiron created Redmine issue ID 8767
This is also similar for all other Resource Types (weblink, static resource, etc).
When instantiating for example the MODx.page.UpdateResource JavaScript class, we are defining a config.url value, which is pointing to the connector. Well, the fact is that the value inside MODx.page.UpdateResource doesn't get used at all (this is not so obvious), instead it is using the config.url from MODx.panel.Resource, where it is set up AGAIN (by exactly the same way).
Well, we can't modify this value without modifying the MODx.page.UpdateResource itself (because the MODx.panel.Resource from inside MODx.page.UpdateResource), so no way of changing of the connector URL FROM THE CONTROLLER. Yes, I can setting the MODx.page.UpdateResource config.url (by this way for example:
but this setting gets lost when instantiating the MODx.panel.Resource.
I suggest changing (for example)
manager/assets/modext/sections/resource/update.js:
to
If needed I can provide a pull request with all required changes on Github. This will allow better control over connectors from the controllers of the resource classes.
The text was updated successfully, but these errors were encountered: