diff --git a/Layout/default/Preorder/Index.php b/Layout/default/Preorder/Index.php
index c1c05d261..4b3b3a097 100644
--- a/Layout/default/Preorder/Index.php
+++ b/Layout/default/Preorder/Index.php
@@ -212,7 +212,7 @@
- is("preorderfront")): ?>| =$preorder->campaign->name?> |
+ is("preorderfront")): ?>=$preorder->campaign->name?> |
=__($preorder->type, "preorder")?> |
Aufgenommen |
building_id): ?>
diff --git a/application/Contract/Contract.php b/application/Contract/Contract.php
index 8700b0b20..7cdda9229 100644
--- a/application/Contract/Contract.php
+++ b/application/Contract/Contract.php
@@ -208,11 +208,6 @@ class Contract extends mfBaseModel {
return $this->journals;
}
- if($name == "journals") {
- $this->journals = array_reverse(ContractjournalModel::search(["contract_id" => $this->id]));
- return $this->journals;
- }
-
if($name == "links") {
$this->links = ContractLinkModel::includesContractId($this->id, ["type" => $link]);
//var_dump($this->links);exit;
diff --git a/application/Product/Product.php b/application/Product/Product.php
index 7d4d0e423..7f254e70c 100644
--- a/application/Product/Product.php
+++ b/application/Product/Product.php
@@ -9,12 +9,12 @@ class Product extends mfBaseModel {
private $attributes;
public function loadAttributes() {
+ $this->attributes = [];
+
if(!$this->producttech_id) {
return [];
}
- $this->attributes = [];
-
// get tech attribs
$ptattribs = mfValuecache::singleton()->get("ProducttechAttributes-techid-".$this->producttech_id);
if($ptattribs === null) {