You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dolibarr 12.0.2
When I save a line in an intervention (htdocs/fichinter/card.php) everything is ok.
When I edit the line, change the text and save, the text's html format is lost.
It turns out that when creating the line the text from the textarea is handled like this: GETPOST('np_desc', 'none');
while it is handled like this when the line is updated ("updateline" case): $desc = GETPOST('np_desc');
So, I changed that last line to this: $desc = GETPOST('np_desc', 'none');
And updating the line started to work as expected.
The text was updated successfully, but these errors were encountered:
Dolibarr 12.0.2
When I save a line in an intervention (htdocs/fichinter/card.php) everything is ok.
When I edit the line, change the text and save, the text's html format is lost.
It turns out that when creating the line the text from the textarea is handled like this:
GETPOST('np_desc', 'none');
while it is handled like this when the line is updated ("updateline" case):
$desc = GETPOST('np_desc');
So, I changed that last line to this:
$desc = GETPOST('np_desc', 'none');
And updating the line started to work as expected.
The text was updated successfully, but these errors were encountered: