See below. Reproducible: Always Steps to Reproduce: 1. Create a template and fill out the "Location > Province/State" and "Contact > Province/State" fields 2. Save the template and exit digikam 3. Reopen digikam and open the same template Actual Results: The "Location > Province/State" and "Contact > Province/State" fields are empty. Expected Results: The "Location > Province/State" and "Contact > Province/State" fields should load the values saved into the template. I believe both issues are caused by typos in core/libs/template/templatemanager.cpp. The first issue is at line 230: else if (name2 == QString::fromLatin1("clocationprovincestate")) should be else if (name2 == QString::fromLatin1("locationprovincestate")) The second issue is an inconsistency between line 258, where the field is called "contactprovincestate": else if (name2 == QString::fromLatin1("contactprovincestate")) and lines 417-419, where it's called "contactprovinceSstate": QDomElement contactprovinceSstate = doc.createElement(QString::fromLatin1("contactprovinceSstate")); contactprovinceSstate.setAttribute(QString::fromLatin1("value"), t.contactInfo().provinceState); elem.appendChild(contactprovinceSstate); Line numbers refer to the current version of the file in git. I'm guessing that fixing the issues in templatemanager.cpp isn't enough and that it's also necessary to fix existing templates in ~/.kde4/share/apps/digikam/template.xml, so I preferred to provide a detailed description of the issue rather than a (possibly incomplete) patch. This issue is reported against the current version in git but it also seems to be present in the 2.5.0 release.
I confirm it. I will patch the typos in a while. @Gilles : Is there a way to modify the existing .xml files in user's comp?
Git commit b9b253626eca171da6c04b68ac015dd02f165667 by smit mehta. Committed on 20/04/2012 at 17:07. Pushed by smitmehta into branch 'master'. Typos fixed M +4 -4 libs/template/templatemanager.cpp http://commits.kde.org/digikam/b9b253626eca171da6c04b68ac015dd02f165667
Smit, Users need to modify xml file hosted in ~/.kde4/share/apps/digikam Gilles
Okay then, I dont think we can do anymore here. Shall I close the bug?
yes, let's go. Don't forget to patch NEWS file... Gilles
Git commit af9ebe0ad1bdbc4f54085794273a77c434cf2258 by smit mehta. Committed on 20/04/2012 at 19:28. Pushed by smitmehta into branch 'master'. update M +2 -0 NEWS http://commits.kde.org/digikam/af9ebe0ad1bdbc4f54085794273a77c434cf2258