diff options
author | Simon Rettberg | 2018-01-11 11:19:14 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-01-11 11:19:14 +0100 |
commit | 4537b9b7c9eb63bf3b2d5066d6c50e68f7de4956 (patch) | |
tree | 454c72e456ca01d5ab4a39114851737c9d7fc57c /modules-available/roomplanner | |
parent | [translations] Focus first untranslated tag (diff) | |
download | slx-admin-4537b9b7c9eb63bf3b2d5066d6c50e68f7de4956.tar.gz slx-admin-4537b9b7c9eb63bf3b2d5066d6c50e68f7de4956.tar.xz slx-admin-4537b9b7c9eb63bf3b2d5066d6c50e68f7de4956.zip |
[statistics] Add "replace machines" feature (not linked to anywhere yet)
Diffstat (limited to 'modules-available/roomplanner')
-rw-r--r-- | modules-available/roomplanner/hooks/statistics-machine-replace.inc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules-available/roomplanner/hooks/statistics-machine-replace.inc.php b/modules-available/roomplanner/hooks/statistics-machine-replace.inc.php new file mode 100644 index 00000000..651c4c25 --- /dev/null +++ b/modules-available/roomplanner/hooks/statistics-machine-replace.inc.php @@ -0,0 +1,7 @@ +<?php + + +foreach ($list as $entry) { + unset($entry['datelimit']); + Database::exec('UPDATE IGNORE location_roomplan SET tutoruuid = :new WHERE tutoruuid = :old', $entry); +}
\ No newline at end of file |