JotPad Dashlet clearing text wher \ is in text #4579

Open
opened 2026-02-20 16:19:59 -05:00 by deekerman · 1 comment
Owner

Originally created by @gody01 on GitHub (Jun 23, 2021).

If text in JotPad dashleds contains backslash (\), all text is lost on "save"

There was reported issues before:

Issue

If \ is added to text in JotPad, complete text is deleted instead of saved:

https://www.gody.si/suitecrm-issue/

Expected Behavior

Text should be saved, regardles of data enetere in text box...

Actual Behavior

Text are cleared.

Possible Fix

On mentioned previous reports fixes were proposed in modules/Home/Dashlets/JotPadDashlet/JotPadDashletScript.tpl
Tried on 7.11.8 and sort of works.
In 7.11.20 something major changed int that file (complete content changhed), so fix is no longer viable.

Steps to Reproduce

Video: https://www.gody.si/suitecrm-issue/

Context

customer lost data in JotPad ...

Lost of data shoule be high priority.

Your Environment

  • SuiteCRM Version used: 7.11.8 & 7.11.20
  • Browser name and version Chrome, FF, ...
  • Environment name and version MySQL, PHP 7
  • Operating System and version OpenSuSE Leap 15.2 & CentOS 7:
Originally created by @gody01 on GitHub (Jun 23, 2021). If text in JotPad dashleds contains backslash (\\), all text is lost on "save" <!--- Before you open an issue, please check if a similar issue already exists or has been closed before. ---> There was reported issues before: - https://community.suitecrm.com/t/major-bug-in-jotpad/30285/3 - https://github.com/salesagility/SuiteCRM/issues/65 - https://github.com/salesagility/SuiteCRM/issues/786 - https://github.com/salesagility/SuiteCRM/issues/1302 #### Issue <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> If \ is added to text in JotPad, complete text is deleted instead of saved: https://www.gody.si/suitecrm-issue/ #### Expected Behavior <!--- Tell us what should happen --> Text should be saved, regardles of data enetere in text box... #### Actual Behavior <!--- Tell us what happens instead --> Text are cleared. #### Possible Fix <!--- Not obligatory, but suggest a fix or reason for the bug --> On mentioned previous reports fixes were proposed in modules/Home/Dashlets/JotPadDashlet/JotPadDashletScript.tpl Tried on 7.11.8 and sort of works. In 7.11.20 something major changed int that file (complete content changhed), so fix is no longer viable. #### Steps to Reproduce Video: https://www.gody.si/suitecrm-issue/ #### Context <!--- How has this bug affected you? What were you trying to accomplish? --> customer lost data in JotPad ... <!--- If you feel this should be a low/medium/high priority then please state so --> Lost of data shoule be high priority. #### Your Environment * SuiteCRM Version used: 7.11.8 & 7.11.20 * Browser name and version Chrome, FF, ... * Environment name and version MySQL, PHP 7 * Operating System and version OpenSuSE Leap 15.2 & CentOS 7:
Author
Owner

@Dillon-Brown commented on GitHub (Jun 27, 2021):

Issue appears to have been introduced here: github.com/skrrp/SuiteCRM@0f0054c17d.

As a temporary solution, you should be able to escape the backslash like so: \\.

@Dillon-Brown commented on GitHub (Jun 27, 2021): Issue appears to have been introduced here: https://github.com/skrrp/SuiteCRM/commit/0f0054c17d5b74f79a3d3e5882c2106e18f9bff7. As a temporary solution, you should be able to escape the backslash like so: ```\\```.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#4579
No description provided.