merge from cvs:
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 9 May 2010 19:33:21 +0000 (15:33 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 9 May 2010 19:33:21 +0000 (15:33 -0400)
[mjr] Do not remove history entries when removing user data (Bug: 8755).

kronolith/docs/CHANGES
kronolith/lib/Application.php
mnemo/docs/CHANGES
mnemo/lib/Api.php
nag/docs/CHANGES
nag/lib/Application.php

index 940f837..960f782 100644 (file)
@@ -32,7 +32,7 @@ v3.0-git
 v2.3.5-cvs
 ----------
 
-
+[mjr] Do not remove history entries when removing user data (Bug: 8755).
 
 
 ------
index 5b4be45..2eec8bc 100644 (file)
@@ -437,9 +437,6 @@ class Kronolith_Application extends Horde_Registry_Application
         /* Remove all events owned by the user in all calendars. */
         $result = Kronolith::getDriver()->removeUserData($user);
 
-        /* Now delete history as well. */
-        $GLOBALS['injector']->getInstance('Horde_History')->removeByParent('kronolith:' . $user);
-
         /* Get the user's default share */
         try {
             $share = $GLOBALS['kronolith_shares']->getShare($user);
index 4b2035d..ff3a25b 100644 (file)
@@ -10,7 +10,7 @@ v3.0-cvs
 v2.2.4-cvs
 ----------
 
-
+[mjr] Do not remove history entries when removing user data (Bug: 8755).
 
 ------
 v2.2.3
index 9b9eacc..0b5d2a2 100644 (file)
@@ -126,23 +126,6 @@ function _mnemo_removeUserData($user)
             }
         }
 
-        /* Now delete history as well. */
-        $history = $GLOBALS['injector']->getInstance('Horde_History');
-        if (method_exists($history, 'removeByParent')) {
-            $histories = $history->removeByParent('mnemo:' . $user);
-        } else {
-            /* Remove entries 100 at a time. */
-            $all = $history->getByTimestamp('>', 0, array(), 'mnemo:' . $user);
-            if (is_a($all, 'PEAR_Error')) {
-                Horde::logMessage($all, 'ERR');
-            } else {
-                $all = array_keys($all);
-                while (count($d = array_splice($all, 0, 100)) > 0) {
-                    $history->removebyNames($d);
-                }
-            }
-        }
-
         /* Remove the share itself */
         if (!empty($share)) {
             $result = $GLOBALS['mnemo_shares']->removeShare($share);
index 5a06533..aa96666 100644 (file)
@@ -15,7 +15,7 @@ v3.0-git
 v2.3.6-cvs
 ----------
 
-
+[mjr] Do not remove history entries when removing user data (Bug: 8755).
 
 
 ------
index 36f154b..0205bfb 100644 (file)
@@ -266,9 +266,6 @@ class Nag_Application extends Horde_Registry_Application
             }
         }
 
-        /* Now delete history as well. */
-        $GLOBALS['injector']->getInstance('Horde_History')->removeByParent('nag:' . $user);
-
         /* ...and finally, delete the actual share */
         if (!empty($share)) {
             $result = $GLOBALS['nag_shares']->removeShare($share);