Revert partially revision 11281 / reverting the wrong change on GridField

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2897730
This commit is contained in:
Carlos Ruiz 2010-02-18 03:36:45 +00:00
parent e0dff39270
commit 1cbd9b01c1
1 changed files with 2 additions and 10 deletions

View File

@ -323,21 +323,13 @@ public class GridField
return false;
// Numeric Keys and Created/Updated as well as
// DocumentNo/Value/ASI are not mandatory (persistence layer manages them)
if (m_vo.ColumnName.equals("DocumentNo") && m_vo.AD_Column_ID == 53251){
// TODO - Find why Report Parameter marked as Mandatory is not displayed as Mandatory?
// Find better solution?
// https://sourceforge.net/tracker/?func=detail&aid=2902292&group_id=176962&atid=879334
// https://sourceforge.net/tracker/?func=detail&aid=2897730&group_id=176962&atid=879332
return true;
} else if ((m_vo.IsKey && m_vo.ColumnName.endsWith("_ID"))
// DocumentNo/Value/ASI ars not mandatory (persistency layer manages them)
if ((m_vo.IsKey && m_vo.ColumnName.endsWith("_ID"))
|| m_vo.ColumnName.startsWith("Created") || m_vo.ColumnName.startsWith("Updated")
|| m_vo.ColumnName.equals("Value")
|| m_vo.ColumnName.equals("DocumentNo")
|| m_vo.ColumnName.equals("M_AttributeSetInstance_ID")) // 0 is valid
{
return false;
}
// Mandatory if displayed
return isDisplayed (checkContext);