Fix historylog, links & categories sticking around if app is deleted

This commit is contained in:
Nathan Gray 2013-01-15 15:44:53 +00:00
parent 133b831fc2
commit 1e20e1cecd
3 changed files with 10 additions and 1 deletions

View File

@ -141,7 +141,8 @@ if(@get_var('submit',Array('POST')))
echo '<br />' . $app_title . ' ' . lang('hooks deregistered') . '.';
}
if ($historylog->delete($appname))
$historylog->appname = $appname;
if ($historylog->delete(null))
{
echo '<br />' . $app_title . ' ' . lang('Historylog removed') . '.';
}

View File

@ -657,10 +657,16 @@ class setup
// Remove categories
$this->db->delete(categories::TABLE, array('cat_appname'=>$appname),__LINE__,__FILE__);
categories::invalidate_cache($appname);
// Remove config
$this->db->delete(config::TABLE, array('config_app'=>$appname),__LINE__,__FILE__);
//echo 'DELETING application: ' . $appname;
$this->db->delete($this->applications_table,array('app_name'=>$appname),__LINE__,__FILE__);
// Remove links to the app
$links = egw_link::unlink(0, $appname);
$this->clear_session_cache();
}

View File

@ -454,6 +454,8 @@ class setup_process
}
/* $appdata['status'] = 'C'; */
}
// Clear categories cache in case app adds categories
categories::invalidate_cache();
/* Done, return current status */
return ($setup_info);