Fix [ 1773939 ] Processing button is treated as always updateable
This commit is contained in:
parent
23c4031415
commit
d7c31694e4
|
@ -372,6 +372,13 @@ public class GridField
|
|||
return false;
|
||||
}
|
||||
|
||||
// Always editable if Active
|
||||
if (checkContext && "Y".equals(Env.getContext(m_vo.ctx, m_vo.WindowNo, "IsActive"))
|
||||
&& ( m_vo.ColumnName.equals("Processing")
|
||||
|| m_vo.ColumnName.equals("PaymentRule")
|
||||
|| m_vo.ColumnName.equals("DocAction")
|
||||
|| m_vo.ColumnName.equals("GenerateTo")))
|
||||
return true;
|
||||
|
||||
// Record is Processed ***
|
||||
if (checkContext
|
||||
|
@ -387,14 +394,6 @@ public class GridField
|
|||
if (checkContext && !Env.getContext(m_vo.ctx, m_vo.WindowNo, "IsActive").equals("Y"))
|
||||
return false;
|
||||
|
||||
// Bahman: Moved this check to here -after isActive check.
|
||||
// Always editable if Active
|
||||
if (m_vo.ColumnName.equals("Processing")
|
||||
|| m_vo.ColumnName.equals("PaymentRule")
|
||||
|| m_vo.ColumnName.equals("DocAction")
|
||||
|| m_vo.ColumnName.equals("GenerateTo"))
|
||||
return true;
|
||||
|
||||
// ultimately visibily decides
|
||||
return isDisplayed (checkContext);
|
||||
} // isEditable
|
||||
|
|
Loading…
Reference in New Issue