Bug 437670

Summary: Rich text editing causes journal to show html code in Jounal View
Product: [Applications] korganizer Reporter: medin <med.medin.2014>
Component: journalviewAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: gjditchfield
Priority: NOR    
Version: 5.17.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Rich text editing causes journal to show html code in Jounal View

Description medin 2021-05-25 16:47:42 UTC
Created attachment 138781 [details]
Rich text editing causes journal to show html code in Jounal View

If you edit a jounal using Rich text (italic, bold, underline...) then you go Journal View you will find that journal shows html code is visible.
Comment 1 gjditchfield 2021-06-18 01:11:13 UTC
1) Switch to the Journal view.
2) Create a journal with a plain-text description.
3) Edit the journal, enable rich text, and save it.

The journal view will show raw HTML.  So will tool tips in other views, and the printed journals.  Events and to-dos can also be made to misbehave.
Comment 2 Bug Janitor Service 2021-06-18 01:34:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kcalendarcore/-/merge_requests/42
Comment 3 gjditchfield 2021-07-02 14:53:49 UTC
Git commit cf903ae1dea07865ace65559425a39d6573ea60a by Glen Ditchfield, on behalf of Glen Ditchfield.
Committed on 26/06/2021 at 15:11.
Pushed by gditchfield into branch 'master'.

Assign and compare more Incidence::Private members

`Incidence::Private::init()`, at the end of a call chain starting at
`IncidenceBase::operator=()`, did not copy `mDescriptionIsRich`, causing

This patch copies `mDescriptionIsRich` and other ignored fields.  It also
adds comparisons for them to `Incidence::equals()`.  Finally,
`JournalTest::testAssign()` did not actually test assignment.

M  +6    -2    autotests/testjournal.cpp
M  +7    -0    src/incidence.cpp

https://invent.kde.org/frameworks/kcalendarcore/commit/cf903ae1dea07865ace65559425a39d6573ea60a