DB4ls_all: bei DELTEONE den TYP mit auswerten
anmeld.js: den TYP mit übergeben Version angepasst
This commit is contained in:
@@ -355,9 +355,10 @@ class RepoAnmeld
|
|||||||
$id
|
$id
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
public static function delete(int $id): int
|
public static function delete(int $id, string $typ): int
|
||||||
{
|
{
|
||||||
return DB::exec("DELETE FROM " . TBL_ANMELD . " WHERE id=?", [$id]);
|
$table = ($typ == 'regular') ? TBL_ANMELD : TBL_SONNEANMELD;
|
||||||
|
return DB::exec("DELETE FROM " . $table . " WHERE id=?", [$id]);
|
||||||
}
|
}
|
||||||
public static function bulkUpdateField(array $ids, string $field, $value): int
|
public static function bulkUpdateField(array $ids, string $field, $value): int
|
||||||
{
|
{
|
||||||
@@ -1115,10 +1116,10 @@ try {
|
|||||||
RepoAnmeld::update((int)$input['id'], $input);
|
RepoAnmeld::update((int)$input['id'], $input);
|
||||||
respond(['success' => true]);
|
respond(['success' => true]);
|
||||||
case 'DELETE_TLN':
|
case 'DELETE_TLN':
|
||||||
RepoAnmeld::delete((int)$input['id']);
|
RepoAnmeld::delete((int)$input['id'], $input['typ']);
|
||||||
respond(['success' => true]);
|
respond(['success' => true]);
|
||||||
case 'DELETEONE': // alias for legacy
|
case 'DELETEONE': // alias for legacy
|
||||||
RepoAnmeld::delete((int)$input['id']);
|
RepoAnmeld::delete((int)$input['id'], $input['typ']);
|
||||||
respond(['success' => true]);
|
respond(['success' => true]);
|
||||||
case 'UPDATE_TLN_BULK':
|
case 'UPDATE_TLN_BULK':
|
||||||
if (!isset($input['ids'], $input['field'], $input['values'])) respondError('Missing fields');
|
if (!isset($input['ids'], $input['field'], $input['values'])) respondError('Missing fields');
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ Beobachtergruppe Sternwarte Welzheim`
|
|||||||
|
|
||||||
// Teilnehmer aus 'anmeldungen' austragen und den count in 'fdatum1' anpassen
|
// Teilnehmer aus 'anmeldungen' austragen und den count in 'fdatum1' anpassen
|
||||||
const austragen = async (teilnehmer) => {
|
const austragen = async (teilnehmer) => {
|
||||||
let update = {cmd: 'DELETEONE', id: parseInt(teilnehmer.id)}
|
let update = {cmd: 'DELETEONE', id: parseInt(teilnehmer.id), typ: query.typ}
|
||||||
const erg1 = await putToDbase(update)
|
const erg1 = await putToDbase(update)
|
||||||
update = {cmd: 'UPDATECOUNT', date: parseInt(teilnehmer.fdatum), anzahl: parseInt(teilnehmer.anzahl)}
|
update = {cmd: 'UPDATECOUNT', date: parseInt(teilnehmer.fdatum), anzahl: parseInt(teilnehmer.anzahl)}
|
||||||
const erg2 = await putToDbase(update)
|
const erg2 = await putToDbase(update)
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
// VersiosNummern und -Geschichte
|
// VersiosNummern und -Geschichte
|
||||||
|
|
||||||
const VERSION="1.12.0";
|
const VERSION="1.12.1";
|
||||||
const VDATE="2026-01-11";
|
const VDATE="2026-01-20";
|
||||||
|
|
||||||
/* History
|
/* History
|
||||||
|
|
||||||
Rev. Datum Entwickler
|
Rev. Datum Entwickler
|
||||||
|
|
||||||
1.12.0 2026-01-11 rxf
|
1.12.1 2026-01-20 rxf
|
||||||
|
- bei DELETEONE den typ mit übergeben (sonst geht storno bei sonne nicht)
|
||||||
|
|
||||||
|
1.12.0 2026-01-11 rxf
|
||||||
- Abmeldedatum richtig als einfacher String mit Sekunden abspeichern
|
- Abmeldedatum richtig als einfacher String mit Sekunden abspeichern
|
||||||
|
|
||||||
1.11.0 2025-12-24 rxf
|
1.11.0 2025-12-24 rxf
|
||||||
|
|||||||
Reference in New Issue
Block a user