Content
Strange behaviour of work package description
Added by Patrick Veith over 7 years ago
Hello all,
i admin a openproject server, which is used for most of our project. Nearly all works very well and i only have a very astonishing problem with work packages description. (Yes: Project description and other editable fields work fine!)
It happens when a work package includes a short text and then directly a list in its description and the editor hits the save icon of the description. The db is updated, but in the webinterface of the editor the description box hangs (e. g. textfield is not editable any more, but reacts to some editor buttons) AND all other user can’t see the description-textfield and editor of the work package any more.
description * one * two
The code as work package description above will lock the browsereditor as described above (tested with firefox & chrome).
But adding an empty line before the list works fine (see below):
description * one * two
My debian jessie server uses unfiltered textile to be able to change color and other things. I can’t find any error-message thus i am not able to track down, what exactly happens.
It there anything that might help me be the color-adding admin i am now and fix this problem?
Greeting, Patrick Veith.
Replies (4)
Hi Patrick,
we noticed this issue this morning on our SaaS environment and are about to release 7.2.2 because of this issue. It happens because the text content of the description is being extracted for the accessibility attribute
aria-label
that describes the description’s content.Work package for tracking: #26159
In the exact case you describe, that extraction fails with a JS error and in consequence, fails to render the field.
You can verify the fix by applying the following patch:
Best,
Oliver
Thanks for the very fast reply. As i use the deb-package not the git to install openproject i manually edited the patch in. Unfortunately it did not change the behaviour. I did the usual ‘openproject configure’ after editing the files.
Regards,
Patrick Veith.
Hey Patrick,
you’re right, I forgot the last step:
please also run
openproject run bundle exec rake assets:precompile
to re-compile all assets. This will update the javascript bundles that contain the bugfix.Best,
Oliver
Perfect, runs like a charm now! Thanks a lot.
Best regards,
Patrick Veith.