Univention Bugzilla – Bug 48739
fix order of slicing and umlaut transformation in user creation templates
Last modified: 2019-02-22 13:09:06 CET
When a template is used to shorten a string and transform the umlauts, the behavior can be surprising. Example from Bug #48696: "<firstname>[0:5].<lastname>[0:5]<:umlauts,lower>" This should generate something like this: Elisabeth Schäfer -> elisa.schae (5 characters) But in fact it generates this: Elisabeth Schäfer -> elisa.schaef (6 characters) The reason is, that UDM first slices and the makes the umlaut transformation. But that expands the "ä" to "ae". Modify UDM to apply length changing operations (like ":umlauts") before slicing. Alternatively change this to a documentation bug and give a hint in the manual including the example solution: "<firstname:umlauts>[0:5].<lastname:umlauts>[0:5]<:lower>".