From 11e4052e2a5167c96756a774b9c9fb2d287aa575 Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Tue, 18 Sep 2007 08:03:49 +0000 Subject: [PATCH] KTS-2335 "Minor GUI glitch in IE7" Checked whether the name in the list of actions is empty. If there is no name IE adds the action as an empty item in the list. --- lib/widgets/portlet.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/widgets/portlet.inc.php b/lib/widgets/portlet.inc.php index 10f149e..e05e07a 100644 --- a/lib/widgets/portlet.inc.php +++ b/lib/widgets/portlet.inc.php @@ -115,7 +115,7 @@ class KTActionPortlet extends KTPortlet { foreach ($actions as $action) { $aInfo = $action->getInfo(); - if ($aInfo !== null) { + if ($aInfo !== null && !empty($aInfo['name'])) { if ($aInfo["ns"] == $currentaction) { unset($aInfo["url"]); $aInfo['active'] = true; @@ -124,6 +124,8 @@ class KTActionPortlet extends KTPortlet { } } ksort($this->actions); + + //echo '
'; print_r($this->actions);
     }
     
     function render() {
--
libgit2 0.21.4