| 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 | 8/2/05 (7636 days ago) |
| Due | |
| Updated | 8/2/05 (7636 days ago) |
| Assigned | |
| Resolved | 8/2/05 (7636 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Not A Bug
bug 2294.State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ if there is only one addressbook then there is no Add menuitem
Queue ⇒ Turba
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);