Added Preorderinfrastructre Api (external patchport assignment)
This commit is contained in:
@@ -15,6 +15,7 @@ class PreordercampaignModel {
|
||||
public $district_is_city;
|
||||
public $hausnummer_add_zusatz;
|
||||
public $exist_is_error;
|
||||
public $create_external_patchports;
|
||||
public $require_connectiontype;
|
||||
public $allow_unit_update;
|
||||
public $netowner_fibu_cost_code;
|
||||
@@ -164,6 +165,15 @@ class PreordercampaignModel {
|
||||
$where .= " AND `Preordercampaign`.`fulfillment` = '$fulfillment'";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("create_external_patchports", $filter)) {
|
||||
$create_external_patchports = $filter['create_external_patchports'];
|
||||
if($create_external_patchports) {
|
||||
$where .= " AND create_external_patchports=1";
|
||||
} else {
|
||||
$where .= " AND create_external_patchports=0";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("name", $filter)) {
|
||||
$name = FronkDB::singleton()->escape($filter['name']);
|
||||
|
||||
Reference in New Issue
Block a user