mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Fix historylog, links & categories sticking around if app is deleted
This commit is contained in:
parent
133b831fc2
commit
1e20e1cecd
@ -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') . '.';
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user