[Tickets #2370] NEW: if there is only one addressbook then there is no Add menuitem
bugs@bugs.horde.org
bugs at bugs.horde.org
Tue Aug 2 02:08:40 PDT 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=2370
-----------------------------------------------------------------------
Ticket | 2370
Created By | m.zdila at episoftware.com
Summary | if there is only one addressbook then there is no Add menuitem
Queue | Turba
Version | 2.0.3-RC1
State | Unconfirmed
Priority | 2. Medium
Type | Bug
Owners |
-----------------------------------------------------------------------
m.zdila at episoftware.com (2005-08-02 02:08) wrote:
${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);
More information about the bugs
mailing list