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

SVN:trunk[1036]
This commit is contained in:
Denis Flaven
2011-01-03 12:54:05 +00:00
parent 83e7e9c44b
commit a8a77fdebb

View File

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