6.0.0-alpha12
6/6/25

[#2370] if there is only one addressbook then there is no Add menuitem
Summary if there is only one addressbook then there is no Add menuitem
Queue Turba
Queue Version 2.0.3-RC1
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester m.zdila (at) episoftware (dot) com
Created 08/02/2005 (7248 days ago)
Due
Updated 08/02/2005 (7248 days ago)
Assigned
Resolved 08/02/2005 (7248 days ago)
Milestone
Patch No

History
08/02/2005 09:11:51 AM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
Duplicate of bug 2294.
08/02/2005 09:08:39 AM m (dot) zdila (at) episoftware (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ if there is only one addressbook then there is no Add menuitem
Queue ⇒ Turba
Reply to this comment
${SUBJ}



Here is the patch to fix this problem:



--- turba-h3-2.0.3-rc1/lib/Turba.php    Mon Jul 18 12:21:08 2005

+++ turba/lib/Turba.php Tue Aug  2 10:59:51 2005

@@ -282,7 +282,7 @@

          if ($GLOBALS['source_count']) {

              $menu->add(Horde::applicationUrl('browse.php'), 
_("_Browse"), 'menu/browse.png', null, null, null, 
$GLOBALS['prefs']->getValue('initial_page') == 'browse.php' && 
basename($_SERVER['PHP_SELF']) == 'index.php' ? 'current' : null);

          }

-        if (!empty($GLOBALS['add_source_options'])) {

+        if (!empty($GLOBALS['source_count'])) {

              $menu->add(Horde::applicationUrl('add.php'), _("_Add"), 
'menu/new.png');

          }

          $menu->add(Horde::applicationUrl('search.php'), 
_("_Search"), 'search.png', 
$GLOBALS['registry']->getImageDir('horde'), null,null, 
$GLOBALS['prefs']->getValue('initial_page') == 'search.php' && 
basename($_SERVER['PHP_SELF']) == 'index.php' ? 'current' : null);


Saved Queries