v1.0
avatar piotr-cz
piotr-cz
10 Mar 2014

Go to

  • main menu
    • Projects
      • click on J!Tracker

Joomla CMS items show up, not J!Tracker items.

Tested on issues.joomla.org, not sure about the current build.

avatar piotr-cz piotr-cz - open - 10 Mar 2014
avatar mbabker
mbabker - comment - 10 Mar 2014

I noticed this the other day too but it started working fine after a few
minutes.

On Monday, March 10, 2014, Piotr notifications@github.com wrote:

Go to

  • main menu
    • Projects
      • click on J!Tracker

Joomla CMS items show up, not J!Tracker items.

Tested on issues.joomla.org, not sure about the current build.

Reply to this email directly or view it on GitHub#322
.

avatar piotr-cz
piotr-cz - comment - 10 Mar 2014

I was able to replicate in few hours' timespan.
I noticed that the project_alias is being saved in session so I cleared the cookie, but still no luck.

avatar b2z
b2z - comment - 10 Mar 2014

Interesting. Have the same problem. But when I logged in and then logout I was able to switch projects.

avatar b2z
b2z - comment - 11 Mar 2014

This is a very strange bug! Debug shows me that the Input object's data and inputs are empty on this line. But it is impossible because I am clicking on the link to switch the project and the Input object should be populated with the GET data. But it is empty :confused:

user1

And when I log in the data is being populated!

user2

So wtf is going on here? :dizzy_face:

avatar b2z
b2z - comment - 18 Mar 2014

@mbabker @elkuku please take a look on it. Thanks!

avatar elkuku elkuku - change - 22 Mar 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-03-22 19:51:16
avatar elkuku elkuku - close - 22 Mar 2014
avatar elkuku elkuku - close - 22 Mar 2014
avatar elkuku
elkuku - comment - 22 Mar 2014

So, it turns out, that the getProject() method is called from the getLanguage() method which is called before the routing happens, so the input object does not get the chance to get fully populated - just in case anybody got sleepless because of this bug (like me :tongue:)

avatar b2z
b2z - comment - 23 Mar 2014

Ah, too complcated for me :smiley: Can you eleborate where is the place where getProject() method is called from the getLanguage() method? Can't find it.

avatar elkuku
elkuku - comment - 23 Mar 2014

Right from the __construct()or.
That is before our router gets the chance to populate the project_alias thingy:
debug-3857
I believe this was introduced when adding user defined languages :wink:
Another quirk is, that our User object depends on the Project Object - bad design...
Or maybe routing happens too late ....

Seems that we've created a fairly complicated beast here :tongue:

avatar mbabker
mbabker - comment - 23 Mar 2014

Still easier to work with than the CMS :hushed:

Add a Comment

Login with GitHub to post a comment