Integrate fix [ 1773939 ] Processing button is treated as always updateable
Proposed by Bahman
This commit is contained in:
parent
d19b2cd1ea
commit
72632c33df
|
@ -373,13 +373,6 @@ public class GridField
|
|||
}
|
||||
|
||||
|
||||
// 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;
|
||||
|
||||
// Record is Processed ***
|
||||
if (checkContext
|
||||
&& (Env.getContext(m_vo.ctx, m_vo.WindowNo, "Processed").equals("Y")
|
||||
|
@ -394,6 +387,14 @@ 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