WIP 2025-01-09 ConstructionConsent
This commit is contained in:
@@ -33,8 +33,8 @@ class ConstructionConsentOwner extends mfBaseModel {
|
||||
$model = new ConstructionConsentOwner();
|
||||
|
||||
$table_fields = [
|
||||
"constructionconsent_id", "owner_name", "owner_street", "owner_zip", "owner_city", "owner_country", "owner_phone",
|
||||
"owner_fax", "owner_email", "status", "result", "create_by","edit_by","create","edit"
|
||||
"constructionconsent_id", "name", "street", "zip", "city", "country", "phone",
|
||||
"fax", "email", "status", "result", "create_by","edit_by","create","edit"
|
||||
];
|
||||
|
||||
foreach($data as $field => $value) {
|
||||
@@ -61,7 +61,7 @@ class ConstructionConsentOwner extends mfBaseModel {
|
||||
|
||||
$db = FronkDB::singleton();
|
||||
|
||||
$res = $db->select("ConstructionConsentOwner", "*", "1 = 1 ORDER BY owner_name");
|
||||
$res = $db->select("ConstructionConsentOwner", "*", "1 = 1 ORDER BY name");
|
||||
if($db->num_rows($res)) {
|
||||
while($data = $db->fetch_object($res)) {
|
||||
$items[] = new ConstructionConsentOwner($data);
|
||||
@@ -77,7 +77,7 @@ class ConstructionConsentOwner extends mfBaseModel {
|
||||
$where = self::getSqlFilter($filter);
|
||||
$sql = "SELECT * FROM ConstructionConsentOwner
|
||||
WHERE $where
|
||||
ORDER BY adb_hausnummer_id LIMIT 1";
|
||||
ORDER BY name LIMIT 1";
|
||||
//var_dump($sql);exit;
|
||||
$res = $db->query($sql);
|
||||
if($db->num_rows($res)) {
|
||||
@@ -114,7 +114,7 @@ class ConstructionConsentOwner extends mfBaseModel {
|
||||
$items = [];
|
||||
|
||||
if(!$order) {
|
||||
$order = "owner_name ASC";
|
||||
$order = "name ASC";
|
||||
}
|
||||
|
||||
$db = FronkDB::singleton();
|
||||
|
||||
Reference in New Issue
Block a user