fusiondirectory issueshttps://gitlab.fusiondirectory.org/fusiondirectory/fd/-/issues2018-04-18T12:44:13Zhttps://gitlab.fusiondirectory.org/fusiondirectory/fd/-/issues/5810Foreign key on IMAP server is failing2018-04-18T12:44:13ZbmortierForeign key on IMAP server is failing### Description
<!-- Required -->
<!-- Description of the issue -->
When changing the CN of an IMAP server and changing its base at the same time the foreign key on CN is not correctly updated.
### FusionDirectory Version
<!-- Require...### Description
<!-- Required -->
<!-- Description of the issue -->
When changing the CN of an IMAP server and changing its base at the same time the foreign key on CN is not correctly updated.
### FusionDirectory Version
<!-- Required -->
demo-dev
### Steps to Reproduce
<!-- Required -->
1. Create an IMAP server
2. Link it to a user
3. Rename and move the server at the same time
4. Check the gosaMailServer LDAP field value
**Expected behavior:**
<!-- What you expect to happen-->
It should contain the new CN
**Actual behavior:**
It contains the old one
<!-- What actually happens -->
### Additional Information
<!-- optional -->
<!-- Any additional information, configuration or data that might be necessary to reproduce the issue. -->
Also it seems the mail server cache is not cleared as it should.
I’m still openning this in core as the main problem is most likely in the foreignKey system. I will move it if needed.FusionDirectory 1.3bmortierbmortier