mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
- bei der warnung buchung vorhanden, name hinzugefuegt
This commit is contained in:
@@ -2499,7 +2499,23 @@ if(!$error)
|
||||
}
|
||||
|
||||
if($exists)
|
||||
{
|
||||
$return = true;
|
||||
$zusatz = "\n";
|
||||
if (count($exists) > 10)
|
||||
{
|
||||
$zusatz .= "und ";
|
||||
$persons = implode("\n- ", array_slice($exists, 0, 10));
|
||||
if (count($exists) === 11)
|
||||
$zusatz .= "einer weiteren Person.";
|
||||
else
|
||||
$zusatz .= (count($exists) - 10) . " weiteren Personen.";
|
||||
}
|
||||
else
|
||||
$persons = implode("\n- ", $exists);
|
||||
|
||||
$data = "Es ist bereits eine Buchung vorhanden:\n- ". $persons . $zusatz ." Trotzdem fortfahren?";
|
||||
}
|
||||
else
|
||||
$return = false;
|
||||
}
|
||||
|
||||
@@ -3102,9 +3102,9 @@ function StudentKontoNeuSpeichern(dialog, person_ids, studiengang_kz)
|
||||
{
|
||||
exists = StudentCheckBuchung(person_ids, studiensemester_kurzbz, buchungstyp_kurzbz, studiengang_kz);
|
||||
}
|
||||
if (exists)
|
||||
if (exists.dbdml_return)
|
||||
{
|
||||
if(!confirm('Die Buchung ist bereits vorhanden. Trotzdem fortfahren?'))
|
||||
if(!confirm(exists.dbdml_data))
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -3159,7 +3159,7 @@ function StudentCheckBuchung(person_ids, studiensemester_kurzbz, buchungstyp_kur
|
||||
|
||||
var val = new ParseReturnValue(response);
|
||||
|
||||
return(val.dbdml_return);
|
||||
return val;
|
||||
}
|
||||
|
||||
// *****
|
||||
|
||||
Reference in New Issue
Block a user