-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.4] Do not get the profile info for the linked user when no user is linked #46398
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
base: 5.4-dev
Are you sure you want to change the base?
Conversation
The method loads the profile info for the linked user even when no user is linked ($contact->user_id == 0), loading unnecessary stuff (UserModel, form, data, plugin) for nothing.
Check linked user_id for an early return as suggested
|
I have a problem! I created a contact named Comparing two links: http://localhost/joomla-cms5/index.php/en/contact-component/contact-categories/park-site/webmaster Ah! Wrong parent category. So with that fixed, the difference is ... what? I see exactly the same result with and without the patch applied. And with and without a linked user. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46398. |
@ceford As far as I understand this PR, there should not be a visible difference. Everything should work as well as before for the 2 cases (contact item without a linked user, and contact item with a linked user). |
|
I have tested this item ✅ successfully on af75ef3 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46398. |
|
I have tested this item ✅ successfully on af75ef3
Applied PR with Patch Teser
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46398. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46398. |
The method loads the profile info for the linked user even when no user is linked ($contact->user_id == 0), loading unnecessary stuff (UserModel, form, data, plugin) for nothing.
Pull Request for Issue # .
Summary of Changes
Conditions the request of Contact Linked profile data and functions to the existence of a linked user
Testing Instructions
Create a contact item and test linking it or not to a user
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed