Browse Source

Removed obsolete link setter that caused bugs.

Kenric Nugteren 1 year ago
parent
commit
87a978bbd5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      prs.classes/Entities/PurchaseOrder/PurchaseOrderItem.cs

+ 2 - 2
prs.classes/Entities/PurchaseOrder/PurchaseOrderItem.cs

@@ -148,7 +148,7 @@ namespace Comal.Classes
         public ProductLink ProductLink
         {
             get { return Product; }
-            set { Product = value; }
+            set { /* We cannot set the 'Product' to this value, because that would stuff the SubObject internal linking, so we do nothing instead. */ }
         }
         
         [EntityRelationship(DeleteAction.SetNull)]
@@ -157,7 +157,7 @@ namespace Comal.Classes
         public ProductStyleLink StyleLink
         {
             get { return Style; }
-            set { Style = value; }
+            set { /* Same as ProductLink */ }
         }