mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 06:27:52 +00:00
Merge pull request #221 from Deutscher-Tischfussballbund/sportsmanager2-issue218
MonsterDYP imports throw error
This commit is contained in:
@@ -11950,6 +11950,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
|||||||
if ($matchingNodes->length != 1) {
|
if ($matchingNodes->length != 1) {
|
||||||
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Datei darf nur eine Disziplin enthalten.");
|
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Datei darf nur eine Disziplin enthalten.");
|
||||||
}
|
}
|
||||||
|
$turniersystemVorrunde = $matchingNodes->item(0)->getAttribute("system");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($disziplinZusatzrunde != null) {
|
if ($disziplinZusatzrunde != null) {
|
||||||
@@ -11960,6 +11961,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
|||||||
if ($matchingNodes->length != 1) {
|
if ($matchingNodes->length != 1) {
|
||||||
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Datei darf nur eine Disziplin enthalten.");
|
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Datei darf nur eine Disziplin enthalten.");
|
||||||
}
|
}
|
||||||
|
$turniersystemZusatzrunde = $matchingNodes->item(0)->getAttribute("system");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($disziplinZusatzrunde2 != null) {
|
if ($disziplinZusatzrunde2 != null) {
|
||||||
@@ -11970,6 +11972,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
|||||||
if ($matchingNodes->length != 1) {
|
if ($matchingNodes->length != 1) {
|
||||||
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Datei darf nur eine Disziplin enthalten.");
|
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Datei darf nur eine Disziplin enthalten.");
|
||||||
}
|
}
|
||||||
|
$turniersystemZusatzrunde2 = $matchingNodes->item(0)->getAttribute("system");
|
||||||
}
|
}
|
||||||
|
|
||||||
$matchingNodes = $disziplin->getElementsByTagName("disziplin");
|
$matchingNodes = $disziplin->getElementsByTagName("disziplin");
|
||||||
@@ -11979,6 +11982,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
|||||||
if ($matchingNodes->length != 1) {
|
if ($matchingNodes->length != 1) {
|
||||||
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Die uebergebene Datei darf nur eine Disziplin enthalten.");
|
redirectSportsManagerURL('&task=admin_turnierdisziplin_meldungen_spiele&turnierdisziplinid=' . $id, "Die uebergebene Datei darf nur eine Disziplin enthalten.");
|
||||||
}
|
}
|
||||||
|
$turniersystemHauptrunde = $matchingNodes->item(0)->getAttribute("system");
|
||||||
|
|
||||||
// Spieler-Ids über Spielerliste ermitteln
|
// Spieler-Ids über Spielerliste ermitteln
|
||||||
$meldungenSpieler = array();
|
$meldungenSpieler = array();
|
||||||
@@ -12259,7 +12263,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
|||||||
|
|
||||||
// Spiele speichern
|
// Spiele speichern
|
||||||
$totalVorrunde = 0;
|
$totalVorrunde = 0;
|
||||||
if ($disziplinVorrunde != null) {
|
if ($disziplinVorrunde != null && $turniersystemVorrunde != "Monster-DYP") {
|
||||||
$matchingNodes = $disziplinVorrunde->getElementsByTagName("runde");
|
$matchingNodes = $disziplinVorrunde->getElementsByTagName("runde");
|
||||||
if ($matchingNodes != null) {
|
if ($matchingNodes != null) {
|
||||||
$totalVorrunde = $matchingNodes->length;
|
$totalVorrunde = $matchingNodes->length;
|
||||||
@@ -12334,7 +12338,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Spiele speichern
|
// Spiele speichern
|
||||||
if ($disziplinZusatzrunde != null) {
|
if ($disziplinZusatzrunde != null && $turniersystemZusatzrunde != "Monster-DYP") {
|
||||||
$matchingNodes = $disziplinZusatzrunde->getElementsByTagName("runde");
|
$matchingNodes = $disziplinZusatzrunde->getElementsByTagName("runde");
|
||||||
if ($matchingNodes != null) {
|
if ($matchingNodes != null) {
|
||||||
$totalZusatzrunde = $matchingNodes->length;
|
$totalZusatzrunde = $matchingNodes->length;
|
||||||
@@ -12408,7 +12412,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Spiele speichern
|
// Spiele speichern
|
||||||
if ($disziplinZusatzrunde2 != null) {
|
if ($disziplinZusatzrunde2 != null && $turniersystemZusatzrunde2 != "Monster-DYP") {
|
||||||
$matchingNodes = $disziplinZusatzrunde2->getElementsByTagName("runde");
|
$matchingNodes = $disziplinZusatzrunde2->getElementsByTagName("runde");
|
||||||
if ($matchingNodes != null) {
|
if ($matchingNodes != null) {
|
||||||
$totalZusatzrunde2 = $matchingNodes->length;
|
$totalZusatzrunde2 = $matchingNodes->length;
|
||||||
@@ -12481,6 +12485,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($turniersystemHauptrunde != "Monster-DYP") {
|
||||||
$matchingNodes = $disziplin->getElementsByTagName("runde");
|
$matchingNodes = $disziplin->getElementsByTagName("runde");
|
||||||
if ($matchingNodes != null) {
|
if ($matchingNodes != null) {
|
||||||
$total = $matchingNodes->length;
|
$total = $matchingNodes->length;
|
||||||
@@ -12554,6 +12559,7 @@ function adminImportTurnierdisziplinMeldungenSpieleForm(): void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach (array(1, 2, 3, 10) as $rundenstufe) {
|
foreach (array(1, 2, 3, 10) as $rundenstufe) {
|
||||||
$query = "SELECT runde, COUNT(*) AS spiele"
|
$query = "SELECT runde, COUNT(*) AS spiele"
|
||||||
|
|||||||
Reference in New Issue
Block a user