View Full Version : seasons problem
dneven
03-12-2016, 01:38 PM
I start new season and there is a problem. For example it is now week 3 and I see that when you click on player's predictions it shows his prediction for week 3 for both season 1 and season 2. Is it possible to show player predictions for the current week only for the current season ?
kostas
05-12-2016, 09:28 AM
Hello
this is a bug for a quick fix please change the following code
file : <joomla installation>/components/com_multileague/models/playerhistory.php should be at line 69
->where("g.week=".$week." AND pp.user_id=".$user)
change this line of code to
->where("g.week=".$week." AND g.season_id=$season AND pp.user_id=".$user)
also in file :<joomla installation>/components/com_multileague/views/playerhistory/view.html.php at line 49~50
if($season==""){
$this->seasonObj=$model->getSeasons();
change it to
$this->seasonObj=$model->getSeasons();
if($season==""){
(swap those lines)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.