diff --git a/Layout/default/Preorder/include/preorder-detail.php b/Layout/default/Preorder/include/preorder-detail.php index bd0f6b917..e90a7591b 100644 --- a/Layout/default/Preorder/include/preorder-detail.php +++ b/Layout/default/Preorder/include/preorder-detail.php @@ -9,7 +9,7 @@ - is("Admin") && $preorder->adb_hausnummer->borderpoint_lat && $preorder->adb_hausnummer->borderpoint_long): ?> + adb_hausnummer->borderpoint_lat && $preorder->adb_hausnummer->borderpoint_long): ?> @@ -596,8 +596,7 @@ - is("Admin")): ?> -
- diff --git a/application/Contract/Contract.php b/application/Contract/Contract.php index ee417d63b..fbb0acdef 100644 --- a/application/Contract/Contract.php +++ b/application/Contract/Contract.php @@ -350,7 +350,9 @@ class Contract extends mfBaseModel { "name" => $file->name, "description" => $file->description, "create_by" => $file->create_by, - "edit_by" => $file->edit_by + "edit_by" => $file->edit_by, + "create" => $file->create, + "edit" => $file->edit ]); $cfile->save(); @@ -358,7 +360,11 @@ class Contract extends mfBaseModel { "contract_id" => $this->id, "type" => "file", "value" => $cfile->id, - "text" => (array_key_exists($cfile->name, TT_ORDER_FILE_TYPES)) ? TT_ORDER_FILE_TYPES[$cfile->name] : $cfile->name + "text" => (array_key_exists($cfile->name, TT_ORDER_FILE_TYPES)) ? TT_ORDER_FILE_TYPES[$cfile->name] : $cfile->name, + "create_by" => $file->create_by, + "edit_by" => $file->edit_by, + "create" => $file->create, + "edit" => $file->edit ]); $journal->save(); } @@ -378,7 +384,11 @@ class Contract extends mfBaseModel { 'contract_id' => $this->id, 'type' => "text", 'value' => "", - 'text' => $order_journal->text + 'text' => $order_journal->text, + 'create_by' => $order_journal->create_by, + 'edit_by' => $order_journal->edit_by, + 'create' => $order_journal->create, + 'edit' => $order_journal->edit ]); $journal->save(); } diff --git a/application/Contractjournal/ContractjournalModel.php b/application/Contractjournal/ContractjournalModel.php index 33007cd43..39f4ea47c 100644 --- a/application/Contractjournal/ContractjournalModel.php +++ b/application/Contractjournal/ContractjournalModel.php @@ -79,7 +79,7 @@ class ContractjournalModel { $res = $db->query($sql); */ - $res = $db->select("Contractjournal", "*", $where); + $res = $db->select("Contractjournal", "*", "$where ORDER BY contract_id,`create`"); if($db->num_rows($res)) { while($data = $db->fetch_object($res)) { $items[] = new Contractjournal($data);