Bug 122826

Summary: "Export Web Page" produces wrong relations output in certain cases
Product: [Applications] korganizer Reporter: Tais P. Hansen <tais.hansen>
Component: html exportAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: christophe, smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tais P. Hansen 2006-02-28 11:10:37 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.3.6 
OS:                Linux

Todo list example:

Item1
 +-Subitem1
 +-Subitem2
Item2
Item3

Resulting Page:

Item1
Item2
Item3

Subitem1
Subitem2
Subitem1
Subitem2
Subitem1
Subitem2

When using the "Export Web Page" function in korganizer while embedded in kontact, the output looks like the result above.

If I start korganizer directly and export to web, the tasklist is generated correctly; only listing subitems once.

Also, if I start kontact with the argument --module=todoplugin, the output is also generated correctly. My kontact is setup to start with the summary page.

I've poked around in the libkcal/htmlexport.cpp code to try to figure out what goes on and from what I can see, the problem is related to (around line 366):

Incidence::List relations = (*it)->relations();

Calling relations.count() returns "6" when korganizer is embedded in kontact, and "2" when it's run directly.

I have, however, been unable to figure out how the relations function works.
Comment 1 Reinhold Kainhofer 2006-11-02 18:59:34 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 2 Sergio Martins 2009-01-08 07:40:51 UTC
It works correctly with current trunk.

Can you retry in kde4 ?
Comment 3 Sergio Martins 2011-02-14 20:51:05 UTC
Fixed, WORKSFORME and NEEDSINFO.