jimport() is a proxy to JLoader::import() however the proxy does not support both method arguments that the real method does. This PR adds the second argument for jimport() to be able to pass it forward.
Testing Instructions
So I found this issue actually on a review of com_categories, but I'm not totally familiar with how the associations stuff works. Essentially though this line shouldn't actually import the right object in the current code since the second argument never gets forwarded so the right lookup path is never used. So if you can figure that out, you might actually validate a potential bug fix along the way. If you're lazy like I am though, you'll just read the code to validate the changes.
RTC on code review. Thanks makes sense.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8144.