DataObjects/Ipshead.php
authorAlan Knowles <alan@roojs.com>
Mon, 30 Mar 2015 04:59:35 +0000 (12:59 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 30 Mar 2015 04:59:35 +0000 (12:59 +0800)
DataObjects/Ipshead.php

index 49dd4cb..d8d8087 100644 (file)
@@ -82,7 +82,7 @@ class Pman_Xtuple_DataObjects_Ipshead extends DB_DataObject
             $roo->jerr("This price list is assigned to a customer - please change that customer to another price list first");
         }
         $ass = DB_DataObject::factory('ipsiteminfo');
-        $ass->query("DELETE FROM ipsiteminfo WHERE ipsiteminfo_ipshead_id = {$this->id}");
+        $ass->query("DELETE FROM ipsiteminfo WHERE ipsiteminfo_ipshead_id = {$this->pid()}");
         return true;
     }