Different capitalization in tags causes task list to be broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
New
|
Undecided
|
Unassigned |
Bug Description
Today I noticed that clicking the button to display the task list (Task list needs to be activated in Edit - Preferences) would trigger an error rather than displaying the task list.
This is zim 0.68
Platform: posix
Locale: en_US UTF-8
FS encoding: UTF-8
Python: (2, 7, 15, 'candidate', 1)
Gtk: (2, 24, 32)
Pygtk: (2, 24, 0)
No bzr version-info found
======= Traceback =======
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
dialog = TaskListDialog.
File "/usr/lib/
dialog = klass(*args, **opts)
File "/usr/lib/
sort_
File "/usr/lib/
self.refresh()
File "/usr/lib/
self.
KeyError: u'Yves'
By elimination (moving sections of the notebook out and back in) I found that the issue was related to having a tag with different capitalization. In my case, I had the tags @YVES and @Yves. Replacing all occurrences of @Yves with @YVES resulted in the task list to open correctly.
It is probably not uncommon for a user to enter a tag with different capitalisation sometime, so probably the software should anticipate on this possibility.