Skip to content

Commit

Permalink
joomla 4
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Mar 24, 2023
1 parent 1103bb8 commit 82df860
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions admin/models/projectteams.php
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,7 @@ function getProjectTeams($project_id = 0, $in_used = false, $divisionid = 0)
$this->_season_id = $this->jsmapp->getUserState("$this->jsmoption.season_id", '0');
$this->project_art_id = $this->jsmapp->getUserState("$this->jsmoption.project_art_id", '0');
$this->sports_type_id = $this->jsmapp->getUserState("$this->jsmoption.sports_type_id", '0');
$result = array();

if (isset(self::$_pro_teams_in_used))
{
Expand All @@ -779,10 +780,7 @@ function getProjectTeams($project_id = 0, $in_used = false, $divisionid = 0)

if ($this->project_art_id == 3)
{
// Select some fields
$this->jsmquery->select("pt.id AS value,concat(t.lastname,' - ',t.firstname,'' ) AS text,t.notes, pt.info");

// From table
$this->jsmquery->from('#__sportsmanagement_person AS t');
$this->jsmquery->join('LEFT', '#__sportsmanagement_season_person_id AS st on st.person_id = t.id');
$this->jsmquery->join('LEFT', '#__sportsmanagement_project_team AS pt ON pt.team_id = st.id');
Expand All @@ -791,10 +789,7 @@ function getProjectTeams($project_id = 0, $in_used = false, $divisionid = 0)
}
else
{
// Select some fields
$this->jsmquery->select('pt.id AS value,t.name AS text,t.notes, pt.info,st.id as season_team_id');

// From table
$this->jsmquery->from('#__sportsmanagement_team AS t');
$this->jsmquery->join('LEFT', '#__sportsmanagement_season_team_id AS st on st.team_id = t.id');
$this->jsmquery->join('LEFT', '#__sportsmanagement_project_team AS pt ON pt.team_id = st.id');
Expand All @@ -816,7 +811,7 @@ function getProjectTeams($project_id = 0, $in_used = false, $divisionid = 0)

if (!$result = $this->jsmdb->loadObjectList())
{
return false;
return $result;
}
else
{
Expand Down

0 comments on commit 82df860

Please sign in to comment.