Closed (fixed)
Project:
Ultimate League Tool
Version:
6.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2011 at 12:48 UTC
Updated:
2 May 2012 at 03:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
jthorson commentedThanks for the report!
My first guess is that the combination of modules you've enabled has flushed out a built-in dependency I didn't consider ... Can you confirm whether or not you've enabled the 'ult_registration' module?
Comment #2
jthorson commentedPatch attached ... fix commited to 6.x-1.x-dev.
Comment #3
liakoni commentedYes, i don't have ULT_Registration module enable. I'll try with the patch.
Comment #4
jthorson commentedSounds good ... let me know if it works for you!
Comment #5
mstrelan commentedPatch definitely doesn't work. The $table variable is not defined.
Comment #6
jthorson commentedThat's odd ... The $table variable is defined in lines 346 through 351 of the ult_standings module:
This function is only called from two places ... lines 153 and 157 of ult_standings.module. One instance calls it with no arguments (which causes the default $type="league" argument to be assumed), and the other calls it with the argument "division". Therefore, one of the first two 'if' conditions should always be invoked, and thus the $table variable should always be defined.
I wonder if perhaps the patch didn't apply properly (or was applied against an earlier version of the code) ... Can you verify that your resulting function looks like the above, after the patch has been applied?
Comment #7
mstrelan commentedI think you're looking at the wrong function. The patch makes changes to ult_standings_getcurrentsession() however you're referring to ult_standings_getactiveleagues()
Comment #8
jthorson commentedYup ... you're right ... the patch is applying against the wrong function. Not sure how that happened ... I'll re-roll and get something back here in about 20 minutes.
Comment #9
jthorson commentedUpdated patch ... let me know if it works, and sorry for the trouble!
Comment #10
mstrelan commentedWorks well, thanks
Comment #11
jthorson commentedReverted bad patch and applied new one ... fix commited to 6.x-1.x.
Thanks for the heads up!
Comment #13
jthorson commentedThis fix was incomplete ... also see the patch posted at http://drupal.org/node/1529370#comment-5884418