?
Related to # 5314
avatar chivitli
chivitli
13 Mar 2014

On lines 214-216 in plugins/finder/categories/categories.php $item variable is used, but it's never defined nor passed to the function. I just got a notice because of this when I was deleting categories. There is a comment written just above those lines

                /* TODO: The $item variable does not seem to be used at all
                $query = clone($this->getStateQuery());
                $query->where('a.id = ' . (int) $pk);

                // Get the published states.
                $this->db->setQuery($query);
                $item = $this->db->loadObject();
                */

But apparently it is used in some cases. I also have to add that I could not reproduce the problem again when I set a test in a new environment, so I have no idea under which conditions it's actually triggered, just that it exists for sure.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
1.00

avatar chivitli chivitli - open - 13 Mar 2014
avatar wilsonge
wilsonge - comment - 14 Mar 2014

Hi what component were you deleting categories in?

avatar chivitli
chivitli - comment - 14 Mar 2014

Content categories, forgot to mention

avatar vdespa vdespa - change - 13 Sep 2014
Category Code style Plugins
avatar vdespa vdespa - change - 13 Sep 2014
Status New Confirmed
avatar wilsonge wilsonge - change - 24 Oct 2014
Category Code style Plugins Plugins
avatar Hackwar
Hackwar - comment - 4 Dec 2014

You might want to celebrate, since #5314 fixes this. :laughing: Sorry that it took so long. Closing this one.

avatar Hackwar Hackwar - change - 4 Dec 2014
Status Confirmed Closed
Rel_Number 5314
Relation Type Related to
avatar jissues-bot jissues-bot - close - 4 Dec 2014
avatar jissues-bot
jissues-bot - comment - 4 Dec 2014

Set to "closed" on behalf of @Hackwar by The JTracker Application at issues.joomla.org/joomla-cms/3300

avatar zero-24 zero-24 - close - 4 Dec 2014
avatar jissues-bot jissues-bot - change - 4 Dec 2014
Closed_Date 0000-00-00 00:00:00 2014-12-04 10:51:15
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment