related to issue 40564: fixed types in query
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 12 Apr 2019 09:55:18 +0200
changeset 35692 c40147ef32b3
parent 35691 ec0386dd0e01
child 35693 f3ff80a1ad20
related to issue 40564: fixed types in query
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoActionHandler.java
--- a/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoActionHandler.java	Fri Apr 12 09:15:25 2019 +0200
+++ b/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoActionHandler.java	Fri Apr 12 09:55:18 2019 +0200
@@ -317,7 +317,7 @@
         } else {
           // Remove all instances of the widget instance that is to be removed
           OBQuery<WidgetInstance> widgetInstanceQuery = OBDal.getInstance()
-              .createQuery(WidgetInstance.class, "copiedFrom = :parent");
+              .createQuery(WidgetInstance.class, "copiedFrom.id = :parent");
           widgetInstanceQuery.setNamedParameter("parent", widgetInstance.getId());
           widgetInstanceQuery.setFilterOnActive(false);
           for (WidgetInstance copiedWidgetInstance : widgetInstanceQuery.list()) {