IDEMPIERE-2935 New record on GridMode error on fields with DisplayLogic / fix NPE when dependent field is hidden

This commit is contained in:
tsvikruha 2015-12-10 08:54:00 -05:00
parent d34c68f3a0
commit ad9c2439a8
2 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> <stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -arch ${target.arch} -nl ${target.nl} -consoleLog"/> <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/> <stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-DPropertyFile=/home/carlos/.idempiere/dcierp.properties"/>
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}"/> <stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}"/>
<stringAttribute key="pde.version" value="3.3"/> <stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="org.adempiere.server.server_product"/> <stringAttribute key="product" value="org.adempiere.server.server_product"/>

View File

@ -872,6 +872,8 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
WEditor editor = editors.get(field); WEditor editor = editors.get(field);
boolean isEditable = field.isEditableGrid(true); boolean isEditable = field.isEditableGrid(true);
if(editor == null)
continue;
editor.setReadWrite(isEditable); editor.setReadWrite(isEditable);
if( isEditable ) if( isEditable )
gridPanel.refresh(gridTab); gridPanel.refresh(gridTab);