Closed flonou closed 1 year ago
10.0.3 is outdated, please try with latest nightly. feel free to reopen if you can reproduce.
Hi, I tested on nightly (it was a bit difficult as it required to use php8) but I see the same issue on our instance (I cloned the database, tried adding new elements, they all show comments on one line)
Code of Conduct
Is there an existing issue for this?
Version
10.0.3
Bug description
When browsing an item category (like monitor for example : glpi/front/monitor.php) I expected fields using multiple lines (like comments) to display multiple lines. It is not at the moment which makes these fields difficult to read and negates the point of having multi line fields when editing. It seems to me that newlines are removed here : https://github.com/glpi-project/glpi/blob/0a8e68d2b854b7104b1516ea017ce50bcb5ffa70/src/Search.php#L7206 where the keep_presentation parameter is set to false.
A possible workaround (but not ideal in my opinion) is to use #LBBR# for newlines but that makes multiline editing complicated too
Relevant log output
No response
Page URL
front/monitor.php
Steps To reproduce
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response