Merge fcbc65ffd837

This commit is contained in:
Heng Sin Low 2013-07-12 15:38:12 +08:00
commit 35c0c89fb6
5 changed files with 11 additions and 5 deletions

View File

@ -691,7 +691,7 @@ public class MColumn extends X_AD_Column
if (rt != null)
foreignTable = rt.getAD_Table().getTableName();
}
} else if (DisplayType.List == refid) {
} else if (DisplayType.List == refid || DisplayType.Payment == refid) {
foreignTable = "AD_Ref_List";
} else if (DisplayType.Location == refid) {
foreignTable = "C_Location";

View File

@ -324,7 +324,11 @@ public class MProcess extends X_AD_Process
{
if (log.isLoggable(Level.INFO)) log.info(pi.getClassName());
if (pi.getClassName().toLowerCase().startsWith(MRule.SCRIPT_PREFIX)) {
return ProcessUtil.startScriptProcess(getCtx(), pi, trx);
} else {
return ProcessUtil.startJavaProcess(getCtx(), pi, trx, managedTrx);
}
} // startClass

View File

@ -276,6 +276,9 @@ public final class WAccountDialog extends Window
GridWindowVO wVO = AEnv.getMWindowVO (m_WindowNo, AD_Window_ID, 0);
if (wVO == null)
return false;
// Force window/tab to be read-only
wVO.WindowType = GridWindowVO.WINDOWTYPE_QUERY;
wVO.Tabs.get(0).IsReadOnly = true;
m_mWindow = new GridWindow (wVO);
m_mTab = m_mWindow.getTab(0);
// Make sure is the tab is loaded - teo_sarca [ 1659124 ]

View File

@ -10,7 +10,6 @@
import org.compiere.util.Env;
Env.setContext(Env.getCtx(), "#ZK_Toolbar_Button_Size", "24");
Env.setContext(Env.getCtx(), "#ZK_BROWSER_TITLE", "iDempiere");
]]>
</zscript>
</zk>

View File

@ -229,7 +229,7 @@ public class AbstractService {
req.setAttribute("MWebServiceType", m_webservicetype);
// Check if role has access on web-service
String hasAccess = DB.getSQLValueString(null, ROLE_ACCESS_SQL,
String hasAccess = DB.getSQLValueStringEx(null, ROLE_ACCESS_SQL,
Env.getAD_Role_ID( m_cs.getCtx()),
m_webservicetype.get_ID());