Fixed lookup of form extension.
This commit is contained in:
parent
c035fd5ec2
commit
c75089559b
|
@ -5,14 +5,14 @@ import org.adempiere.base.Service;
|
|||
import org.adempiere.base.ServiceQuery;
|
||||
|
||||
public class Extensions {
|
||||
|
||||
|
||||
public static Object getForm(String id) {
|
||||
if (Core.isExtension(id)) {
|
||||
id = id.substring(Core.OSGI_PREFIX.length());
|
||||
}
|
||||
|
||||
|
||||
ServiceQuery query = new ServiceQuery();
|
||||
query.put("id", id);
|
||||
query.put(ServiceQuery.EXTENSION_ID, id);
|
||||
return Service.locate(Object.class, "org.adempiere.webui.Form", query);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue