mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Beanstandung Copilot abgearbeitet 1
This commit is contained in:
@@ -10604,7 +10604,7 @@ function adminSaveBegegnungSpielplan(): void
|
||||
|
||||
//Spielbericht komplett loeschen
|
||||
if ($benutzer_ist_moderator && $jInput->get('loeschen', false, 'BOOL')) {
|
||||
adminDeleteMatchReportBegegnung($id);
|
||||
adminDeleteMatchReportBegegnung($id,$veranstaltungId);
|
||||
redirectSportsManagerURL('&task=admin_begegnungen&veranstaltungid=' . $veranstaltungId . '#id' . $id, Text::_('COM_SPORTSMANAGER_MATCH_REPORT_WAS_DELETED'));
|
||||
}
|
||||
|
||||
@@ -11072,7 +11072,7 @@ function adminSaveBegegnungSpielplan(): void
|
||||
}
|
||||
}
|
||||
|
||||
function adminDeleteMatchReportBegegnung($id): void
|
||||
function adminDeleteMatchReportBegegnung($id,$veranstaltungId): void
|
||||
{
|
||||
$db = getDatabase();
|
||||
$user_id = isExternalDatabase() ? 0 : (isJson() ? getUserID() : Factory::getContainer()->get(SiteApplication::class)->getIdentity()->id);
|
||||
@@ -11231,7 +11231,7 @@ function adminDeleteMatchReportBegegnung($id): void
|
||||
$pin = decrypt($encrypted_pin, "a9cZ" . $veranstaltungId . "oDS7" . $id . "2eA");
|
||||
|
||||
$query = "SELECT team_id FROM #__sportsmanager_team"
|
||||
. "\n WHERE pin = '$pin' AND veranstaltung_id = $veranstaltungId;";
|
||||
. "\n WHERE pin = " . $db->quote($pin) . " AND veranstaltung_id = $veranstaltungId;";
|
||||
$team_id = loadResult($db, $query);
|
||||
|
||||
$query = "INSERT INTO #__sportsmanager_begegnung_historie"
|
||||
|
||||
Reference in New Issue
Block a user