IDEMPIERE-2935 New record on GridMode error on fields with DisplayLogic / fix another NPE / IDEMPIERE-2972 Checkbox change in grid view cause NPE
This commit is contained in:
parent
7d92db3c56
commit
8c190a105e
|
@ -868,14 +868,15 @@ public class GridTabRowRenderer implements RowRenderer<Object[]>, RowRendererExt
|
||||||
*/
|
*/
|
||||||
public void checkDependants(ArrayList<GridField> dependantFields){
|
public void checkDependants(ArrayList<GridField> dependantFields){
|
||||||
|
|
||||||
for ( GridField field : dependantFields ){
|
for (GridField field : dependantFields) {
|
||||||
|
if (field == null)
|
||||||
WEditor editor = editors.get(field);
|
|
||||||
boolean isEditable = field.isEditableGrid(true);
|
|
||||||
if(editor == null)
|
|
||||||
continue;
|
continue;
|
||||||
|
WEditor editor = editors.get(field);
|
||||||
|
if (editor == null)
|
||||||
|
continue;
|
||||||
|
boolean isEditable = field.isEditableGrid(true);
|
||||||
editor.setReadWrite(isEditable);
|
editor.setReadWrite(isEditable);
|
||||||
if( isEditable )
|
if (isEditable)
|
||||||
gridPanel.refresh(gridTab);
|
gridPanel.refresh(gridTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue