Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text format lost when saving a line in an intervention #14901

Closed
joanahead opened this issue Oct 2, 2020 · 0 comments
Closed

Text format lost when saving a line in an intervention #14901

joanahead opened this issue Oct 2, 2020 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@joanahead
Copy link

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.

@joanahead joanahead added the Bug This is a bug (something does not work as expected) label Oct 2, 2020
@eldy eldy closed this as completed in 272b98f Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant