Browse Source

Make sure that the "+" (Create) button is never displayed for an abstract class.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1036 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 years ago
parent
commit
ec8b153fcd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/ui.extkeywidget.class.inc.php

+ 1 - 1
application/ui.extkeywidget.class.inc.php

@@ -94,7 +94,7 @@ class UIExtKeyWidget
 	 */
 	public function Display(WebPage $oPage, $aArgs = array())
 	{
-		$bCreate = (UserRights::IsActionAllowed($this->sTargetClass, UR_ACTION_BULK_MODIFY) && $this->oAttDef->AllowTargetCreation());
+		$bCreate = (!MetaModel::IsAbstract($this->sTargetClass)) && (UserRights::IsActionAllowed($this->sTargetClass, UR_ACTION_BULK_MODIFY) && $this->oAttDef->AllowTargetCreation());
 		$sMessage = Dict::S('UI:Message:EmptyList:UseSearchForm');
 
 		$sHTMLValue = "<span style=\"white-space:nowrap\">"; // no wrap