Bug 251139 - [data loss] - when in todo view, clicking on drop-down box deletes existing categories
Summary: [data loss] - when in todo view, clicking on drop-down box deletes existing c...
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: todoview (show other bugs)
Version: 4.4.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-13 19:21 UTC by Tim
Modified: 2010-12-13 23:49 UTC (History)
3 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 Tim 2010-09-13 19:21:23 UTC
Version:           4.4.5 (using KDE 4.5.1) 
OS:                Linux

When in the todo view, I click on the drop-down box in the categories column and the drop-down box opens with no categories (when there are categories attached to the todo)... consequently the categories are lost if moving to another todo.

Reproducible: Always

Steps to Reproduce:
1) To to todo view
2) select a todo with categories
3) click on drop-down box
4) categories that are attached to todo should be checked (selected) in the drop-down box... but are not
5) click on another todo... and all the todo categories of the first todo are lost or deleted.

Actual Results:  
The result should be that the drop-down box should contain selected categories that originally existed before selecting the drop-down box.

Expected Results:  
All categories are lost or deleted (unless they are reselected before leaving the drop-down box)

OS: Linux (x86_64) release 2.6.32-24-generic
Compiler: cc
Comment 1 Tim 2010-09-16 11:22:20 UTC
Note: this occurs when a filter is applied to the todo list.
Comment 2 Tim 2010-10-10 12:31:17 UTC
Bug not fixed in 4.4.6
Comment 3 Tim 2010-12-02 19:44:58 UTC
Bug not fixed in 4.4.7
Comment 4 Tim 2010-12-09 02:39:02 UTC
Bug not fixed in 4.4.8
Comment 5 Sergio Martins 2010-12-09 10:43:29 UTC
I can't reproduce this.
Can you try with a new user?
Comment 6 Tim 2010-12-09 12:08:29 UTC
I have replicated the bug with a new user.  Here is what I did:
1)  open korganizer
2)  click on the todo list icon
3)  open settings and manage categories
4)  add the following category "numbers"
5)  add the following 5 subcategories to the category numbers: 1,2,3,4,5
      so if will look like:
        numbers
            1
            2
            3
            4
            5
6)  apply/save and close the manage categories window
7)  open manage view filters using the settings option
8)  create a new filter called number filter (leave all boxes unchecked)
9)  select "show all except selected"
10) and the subcategory "3"
11) apply to save and close window
12) click on add todo and  enter the title test todo
13) select the following categories: "1", "2" and "5"
14) apply and close window
15)  the new todo should now appear in the todo list
16)  open view then filter and select number filter
17) the new todo should still appear in the list
18) now click once on the todo line (I click on an empty column)
19) now click one the drop down box that contains: "Numbers:1,Numbers:2,Numbers:5"  you will notice that if you click once on the category column with the categories, the dropdown box will appear and it will already be empty. When you click on the down arrow to open the dropdown box none of the categories will be checked. The result: the categories have been deleted.
If you follow this detailed procedure, I'm sure you will get the same result.
Comment 7 Tim 2010-12-09 12:20:09 UTC
Corrections: The result is NOT that the "categories have been deleted", but that the categories that were selected before (1,2&5) are no longer selected -- all categories are unchecked.
Comment 8 Sergio Martins 2010-12-11 22:25:15 UTC
No filter needed, just add some subcategory to a to-do, then when you click the combo, they will be unset.
Comment 9 Sergio Martins 2010-12-13 22:43:34 UTC
SVN commit 1206211 by smartins:

Make subcategories work in korganizer.
" SubCategory" was being compared to "Category:SubCategory", and that failed.
We must use the same role in both sides.
BUG: 251139

 MM +4 -1      kcheckcombobox.cpp  
 MM +3 -0      kcheckcombobox.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1206211
Comment 10 Allen Winter 2010-12-13 23:49:41 UTC
SVN commit 1206235 by winterz:

backport SVN commit 1206211 by smartins:

Make subcategories work in korganizer.
" SubCategory" was being compared to "Category:SubCategory", and that failed.
We must use the same role in both sides.
CCBUG: 251139


 M  +4 -1      kcheckcombobox.cpp  
 M  +9 -0      kcheckcombobox.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1206235