Team-Statistik: Neu-Badge-Link kannte $selectedTree nicht (ViewException auf Produktion)
Die Closure fuer den Link des gruenen "+N"-Badges band die neue Variable nicht per use ein; sobald eine Linie neue Abos zaehlte, brach die Uebersicht mit "Undefined variable $selectedTree" ab. Regressionstest rendert die Uebersicht mit einem neuen Teamabo und prueft den Badge-Link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
96545364f1
commit
44637d06a7
3 changed files with 52 additions and 2 deletions
|
|
@ -115,14 +115,14 @@
|
|||
|
||||
// Ziel-Link des grünen "+N"-Badges: Neupartner-Liste bzw. Abo-Drilldown
|
||||
// gefiltert auf die im Monat neuen Abos (only_new).
|
||||
$newBadgeLink = function (int $lineNo, string $metric) use ($selectedMonth, $selectedYear): string {
|
||||
$newBadgeLink = function (int $lineNo, string $metric) use ($selectedMonth, $selectedYear, $selectedTree): string {
|
||||
if ($metric === 'consultants') {
|
||||
return route('user_backoffice_statistics_details', [
|
||||
'line' => $lineNo,
|
||||
'metric' => 'new_partners',
|
||||
'month' => $selectedMonth,
|
||||
'year' => $selectedYear,
|
||||
'tree' => $selectedTree,
|
||||
'tree' => $selectedTree,
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue