Commit e6dc23ea09e1d6cedbfb2e32803abf87713c7efa

Authored by mukhtar
1 parent 9e80560d

added check for no type specific data


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1421 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/editDocTypeUI.inc
... ... @@ -78,8 +78,10 @@ function getDetailsPage($iDocTypeID,$aGeneric,$aSpecific, $aAllSpecific) {
78 78 $sToRender .= "<tr><td><br></br></td></tr>\n";
79 79 $sToRender .= "<tr></tr>\n";
80 80 $sToRender .= "<tr>\n";
81   - $sToRender .= "<td>Add New Type Specific Field: </td><td>" . addSpecificFieldsList($aAllSpecific) ;
82   - $sToRender .= "</td></tr><td></td><td>Mandatory: <input type=\"checkbox\" name=\"fIsMandatory\" value=\"1\" CHECKED></td><td>" . getAddSpecificFieldButton() . "</td>\n";
  81 + if(count($aAllSpecific) > 0){
  82 + $sToRender .= "<td>Add New Type Specific Field: </td><td>" . addSpecificFieldsList($aAllSpecific) ;
  83 + $sToRender .= "</td></tr><td></td><td>Mandatory: <input type=\"checkbox\" name=\"fIsMandatory\" value=\"1\" CHECKED></td><td>" . getAddSpecificFieldButton() . "</td>\n";
  84 + }
83 85 $sToRender .= "</tr>\n";
84 86 $sToRender .= "<tr><td><br></br></td></tr>\n";
85 87 $sToRender .= "<tr></tr>\n";
... ...