DataObjects/Ipshead.php
authorAlan Knowles <alan@roojs.com>
Mon, 30 Mar 2015 05:00:24 +0000 (13:00 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 30 Mar 2015 05:00:24 +0000 (13:00 +0800)
DataObjects/Ipshead.php

index d8d8087..1df8a76 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->pid()}");
+        $ass->query("DELETE FROM ipsiteminfo WHERE ipsitem_ipshead_id = {$this->pid()}");
         return true;
     }