when SPM != non $set('team_position', null);

This commit is contained in:
salam committed 2026-06-15 10:13:12 +02:00
1 parent f4f524646a
commit 0ebc3b3f4e
2 files changed
+2 -12

No files matched your search

+1 -1
View File
@@ -201,6 +201,7 @@ class Statistic extends BaseDashboard
->afterStateUpdated(function (callable $set) { ->afterStateUpdated(function (callable $set) {
$set('team_id', null); $set('team_id', null);
$set('tm_player_id', null); $set('tm_player_id', null);
$set('team_position', null);
}) })
->options([ ->options([
'none' => 'Similar Past Matches: None', 'none' => 'Similar Past Matches: None',
@@ -277,6 +278,5 @@ class Statistic extends BaseDashboard
$str .= '</div>'; $str .= '</div>';
return new HtmlString($str); return new HtmlString($str);
} }
} }
+1 -11
View File
@@ -418,7 +418,7 @@ class LoadEvents
'away_team' => $away_team, 'away_team' => $away_team,
'similar_past_matches' => $similar_past_matches, 'similar_past_matches' => $similar_past_matches,
]; ];
if ($dataset_exp_home) { if ($statistic_type == 'gls') {
$data['datasets'][] = [ $data['datasets'][] = [
'label' => 'Goals ' . $label1, 'label' => 'Goals ' . $label1,
'events' => $events, 'events' => $events,
@@ -430,11 +430,6 @@ class LoadEvents
'backgroundColor' => '#00c950', 'backgroundColor' => '#00c950',
'pointStyle' => $hasdots, 'pointStyle' => $hasdots,
'hidden' => true, 'hidden' => true,
'fill' => [
'target' => 1,
'above' => '#fb2c3680',
'below' => '#fdc70080',
],
]; ];
$data['datasets'][] = [ $data['datasets'][] = [
'label' => 'Goals ' . $label2, 'label' => 'Goals ' . $label2,
@@ -447,11 +442,6 @@ class LoadEvents
'backgroundColor' => '#2b7fff', 'backgroundColor' => '#2b7fff',
'pointStyle' => $hasdots, 'pointStyle' => $hasdots,
'hidden' => true, 'hidden' => true,
'fill' => [
'target' => 1,
'above' => '#fb2c3680',
'below' => '#fdc70080',
],
]; ];
} }