preorder form caught up with api now

This commit is contained in:
Frank Schubert
2022-10-20 15:28:48 +02:00
parent 56dab61941
commit 915ff4a6f7
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -222,7 +222,7 @@ class PreorderController extends mfBaseController {
break;
}
$data['connection_count'] = intval($r->connection_count);
$data['connection_count'] = (intval($r->connection_count)) ? intval($r->connection_count) : 1;
$data['accept_agb'] = 1;
$data['accept_dsgvo'] = 1;
$data['accept_withdrawal'] = 1;
@@ -326,8 +326,9 @@ class PreorderController extends mfBaseController {
/*
* save
* generate ucode and save
*/
$preorder->createUcode();
$new_id = $preorder->save();
if(!$new_id) {
$this->layout()->setFlash("Fehler beim Speichern", "error");