Wednesday, April 9, 2025
1 change · saas-18.2
Resolved issues and error corrections
Opening a mail group could fail when a message did not contain the expected quoted content. This fix prevents that error and ensures the “read more” behavior is only added when the required content is present, improving reliability for group visitors.
Original PR description
Problem: After this commit: https://github.com/odoo/odoo/commit/22e777c046521f3f89b62caa5876680beb7f5aba#diff-4c88f379fa12efc16e2a3e4063f0dc4f7cf41affe8aedcc15e47ccf7c3306087 - `".card-body *[data-o-mail-quote]"` might not exist, causing a traceback on `quoted.insertBefore`. - `classList.add` does not accept space-separated classes, causing another traceback. Solution: - Add `readMore` only if `".card-body *[data-o-mail-quote]"` exists. - Pass classes separately in `classList.add`. Steps to reproduce: 1. Go to `/groups` (e.g., `http://localhost:8069/groups`). 2. Open any group. 3. Traceback occurs. opw-4703771 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr