preorder form caught up with api now
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user