Pending

User tests: Successful: Unsuccessful:

avatar ghost
ghost
13 Apr 2012

Ran into a case where other plugins where causing problems in prepareContent. In order to work around this, I had to duplicate the entire prepareContent method in my plugin in order to change the list of excluded plugins. As a proposed solution, I've moved the $conflicts array to the parameters for prepareContent. If not given, it defaults to what it was before, if given it overrides it and allows different plugins to be excluded.

avatar garyamort garyamort - open - 13 Apr 2012
avatar infograf768
infograf768 - comment - 13 Apr 2012

Please make a tracker on joomlacode and add reference here.

avatar mbabker
mbabker - comment - 13 Apr 2012

This code should actually be removed. The $_observers array in JDispatcher is protected and unable to be accessed from the indexer helper.

The best practice is for plugins to check for the com_finder.indexer context. Otherwise, there really isn't anything that can be done within the indexer's code.

avatar garyamort
garyamort - comment - 13 Apr 2012

"Please make a tracker on joomlacode and add reference here." - no. :-)

Sorry, I lack the time to learn how to navigate yet another system. I'll offer the change for those who decide they want it. Beyond that though I lack time.

avatar garyamort garyamort - close - 13 Apr 2012
avatar garyamort
garyamort - comment - 13 Apr 2012

' The $_observers array in JDispatcher is protected and unable to be accessed from the indexer helper.'... hmm, it worked for me. I must have subclassed the JDispatcher class in order to get around that.. ugly hack... I guess I could go back and swap it out calls to detach instead... I'll put that on my todo list..... low, but there. :-)

avatar beat beat - reference | 615f38a - 10 Sep 13

Add a Comment

Login with GitHub to post a comment