Integrate fix [ 1773939 ] Processing button is treated as always updateable

Proposed by Bahman
This commit is contained in:
Carlos Ruiz 2008-02-01 18:01:48 +00:00
parent d19b2cd1ea
commit 72632c33df
1 changed files with 8 additions and 7 deletions

View File

@ -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