Fixed lookup of form extension.

This commit is contained in:
Heng Sin Low 2010-11-04 03:51:55 +08:00
parent c035fd5ec2
commit c75089559b
1 changed files with 3 additions and 3 deletions

View File

@ -5,14 +5,14 @@ import org.adempiere.base.Service;
import org.adempiere.base.ServiceQuery; import org.adempiere.base.ServiceQuery;
public class Extensions { public class Extensions {
public static Object getForm(String id) { public static Object getForm(String id) {
if (Core.isExtension(id)) { if (Core.isExtension(id)) {
id = id.substring(Core.OSGI_PREFIX.length()); id = id.substring(Core.OSGI_PREFIX.length());
} }
ServiceQuery query = new ServiceQuery(); ServiceQuery query = new ServiceQuery();
query.put("id", id); query.put(ServiceQuery.EXTENSION_ID, id);
return Service.locate(Object.class, "org.adempiere.webui.Form", query); return Service.locate(Object.class, "org.adempiere.webui.Form", query);
} }
} }