added POST /preorder Api
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
class PreorderModel {
|
||||
public $ucode;
|
||||
public $preordercampaign_id;
|
||||
public $adb_hausnummer_id;
|
||||
public $adb_wohneinheit_id;
|
||||
@@ -26,6 +27,8 @@ class PreorderModel {
|
||||
public $city;
|
||||
public $phone;
|
||||
public $email;
|
||||
public $submit_type;
|
||||
public $submit_request;
|
||||
|
||||
public $note;
|
||||
|
||||
@@ -155,6 +158,13 @@ class PreorderModel {
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("ucode", $filter)) {
|
||||
$ucode = FronkDB::singleton()->escape($filter['ucode']);
|
||||
if($ucode) {
|
||||
$where .= " AND ucode like '%$ucode%'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//var_dump($filter, $where);exit;
|
||||
return $where;
|
||||
|
||||
Reference in New Issue
Block a user