summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/inc/autolocation.inc.php
Commit message (Collapse)AuthorAgeFilesLines
* [locations] Cleanup Location classSimon Rettberg2025-07-071-2/+2
| | | | | | | | | | There was a mess of functions which mostly, but not quite, did the same things. Get rid of a couple of them and fix call sites to use alternative ones that also fit the job. While at it, add phpdoc and comments to the remaining functions, trying to clarify what they were designed for. Lastly, the return type of functions that retrieve a location id has been changed from false|int to ?int (nullable types are just nicer).
* Moderize Database handlingSimon Rettberg2021-05-111-1/+1
| | | | | | | * Auto-convert to utf8mb4_unicode_520_ci * Use foreach instead of while to loop over results * Drop useless statement caching * Keep emulated prepares, as we sometimes loop over nested queries
* [locations] Add warnings/cleanup for bad machine to roomplan mappingsSimon Rettberg2019-07-311-0/+3
|
* [statistics/locations] Add locationid constraints; update on deleteSimon Rettberg2019-04-031-7/+20
| | | | | We didn't update subnetlocationid when deleting a location, leading to machines pointing to invalid locations.
* [statistics/locations] Update/set subnetlocationid field in DB if the DB has ↵Simon Rettberg2017-01-111-0/+35
been updated