summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/horde-turba-kolab/files/HK-GW-Fix_share_id_change-2.2_alpha.patch')
-rw-r--r--www-apps/horde-turba-kolab/files/HK-GW-Fix_share_id_change-2.2_alpha.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/www-apps/horde-turba-kolab/files/HK-GW-Fix_share_id_change-2.2_alpha.patch b/www-apps/horde-turba-kolab/files/HK-GW-Fix_share_id_change-2.2_alpha.patch
new file mode 100644
index 0000000..f60e1a0
--- /dev/null
+++ b/www-apps/horde-turba-kolab/files/HK-GW-Fix_share_id_change-2.2_alpha.patch
@@ -0,0 +1,23 @@
+This fixes a problem with the way the Kolab share driver handles ids.
+
+diff -r dd05e667699d turba/lib/Turba.php
+--- a/turba/lib/Turba.php Tue Oct 02 06:47:29 2007 +0200
++++ b/turba/lib/Turba.php Tue Oct 02 06:55:13 2007 +0200
+@@ -439,7 +439,7 @@ class Turba {
+
+ $source_config = $sources[$source];
+ $source_config['params']['share'] = &$share;
+- $sources[$sourceKey] = $source_config;
++ $sources[$share->getId()] = $source_config;
+ } else {
+ $notification->push($driver, 'horde.error');
+ }
+@@ -564,7 +564,7 @@ class Turba {
+ /* Add the new addressbook to the user's list of visible
+ * address books. */
+ $prefs = explode("\n", $GLOBALS['prefs']->getValue('addressbooks'));
+- if (array_search($share_id, $prefs) === false) {
++ if (array_search($share->getId(), $prefs) === false) {
+ $GLOBALS['prefs']->setValue('addressbooks', $GLOBALS['prefs']->getValue('addressbooks') . "\n" . $share_id);
+ }
+ return $share;