Small weirdness in foreignKey handling
While working on #5799 (closed) I saw that there are some small weird things in foreignKey handling which might slow things down a bit
First one is some object types appear both as uppercase and lowercase in the $foreignRefs temp array instead of appearing only once (should be easy to fix).
Second one is that ACL assignment foreign keys appear both as from ACL assignment object type and each departement object type, which duplicate the LDAP search (harder to fix, might need a hardcoded special case for this tab).
Steps to Reproduce
- Add a debug dump for $foreignKey temp array
- Go to the references tab of a user
- Look at the dump
Clean well-organized array
Some duplicated info and mixed upper/lower case for object types