Commit 11e4052e2a5167c96756a774b9c9fb2d287aa575

Authored by Megan Watson
1 parent af452a37

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.

Committed by: Megan Watson
Reviewed by: Conrad Vermeulen



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7141 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 1 deletions
lib/widgets/portlet.inc.php
@@ -115,7 +115,7 @@ class KTActionPortlet extends KTPortlet { @@ -115,7 +115,7 @@ class KTActionPortlet extends KTPortlet {
115 foreach ($actions as $action) { 115 foreach ($actions as $action) {
116 $aInfo = $action->getInfo(); 116 $aInfo = $action->getInfo();
117 117
118 - if ($aInfo !== null) { 118 + if ($aInfo !== null && !empty($aInfo['name'])) {
119 if ($aInfo["ns"] == $currentaction) { 119 if ($aInfo["ns"] == $currentaction) {
120 unset($aInfo["url"]); 120 unset($aInfo["url"]);
121 $aInfo['active'] = true; 121 $aInfo['active'] = true;
@@ -124,6 +124,8 @@ class KTActionPortlet extends KTPortlet { @@ -124,6 +124,8 @@ class KTActionPortlet extends KTPortlet {
124 } 124 }
125 } 125 }
126 ksort($this->actions); 126 ksort($this->actions);
  127 +
  128 + //echo '<pre>'; print_r($this->actions);
127 } 129 }
128 130
129 function render() { 131 function render() {