Bug 122826 - "Export Web Page" produces wrong relations output in certain cases
Summary: "Export Web Page" produces wrong relations output in certain cases
Status: RESOLVED WORKSFORME
Alias: None
Product: korganizer
Classification: Applications
Component: html export (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-28 11:10 UTC by Tais P. Hansen
Modified: 2011-02-14 20:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.