diff options
author | Simon Rettberg | 2017-11-28 14:13:58 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-28 14:13:58 +0100 |
commit | 55e1a7238bf279ef9727db40d0ff4874a5741f15 (patch) | |
tree | 5586299143154b5ba965008833fb5672775da414 /modules-available | |
parent | [sysconfig] Revert contraint to location table: Breaks default config (diff) | |
download | slx-admin-55e1a7238bf279ef9727db40d0ff4874a5741f15.tar.gz slx-admin-55e1a7238bf279ef9727db40d0ff4874a5741f15.tar.xz slx-admin-55e1a7238bf279ef9727db40d0ff4874a5741f15.zip |
[sysconfig] Don't delete default config...
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/sysconfig/hooks/cron.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/sysconfig/hooks/cron.inc.php b/modules-available/sysconfig/hooks/cron.inc.php index d2457685..b518ca06 100644 --- a/modules-available/sysconfig/hooks/cron.inc.php +++ b/modules-available/sysconfig/hooks/cron.inc.php @@ -5,4 +5,4 @@ Trigger::ldadp(); // Cleanup orphaned config<->location where the location has been deleted Database::exec("DELETE c FROM configtgz_location c LEFT JOIN location l USING (locationid) - WHERE l.locationid IS NULL"); + WHERE l.locationid IS NULL AND c.locationid <> 0"); |