r23292 - gnucash/trunk/src/app-utils - Prefs migration: fix radiobutton prefs migration

Geert Janssens gjanssens at code.gnucash.org
Wed Oct 16 11:22:30 EDT 2013


Author: gjanssens
Date: 2013-10-16 11:22:28 -0400 (Wed, 16 Oct 2013)
New Revision: 23292
Trac: http://svn.gnucash.org/trac/changeset/23292

Modified:
   gnucash/trunk/src/app-utils/make-prefs-migration-script.xsl
Log:
Prefs migration: fix radiobutton prefs migration

It contained a bug that would set two radiobuttons active in one
radiogroup. This was only really visible in the backend, but
resulted in the wrong option to be highlighted (for example
autoledger register style instead of ledger)

Modified: gnucash/trunk/src/app-utils/make-prefs-migration-script.xsl
===================================================================
--- gnucash/trunk/src/app-utils/make-prefs-migration-script.xsl	2013-10-16 15:22:04 UTC (rev 23291)
+++ gnucash/trunk/src/app-utils/make-prefs-migration-script.xsl	2013-10-16 15:22:28 UTC (rev 23292)
@@ -156,7 +156,7 @@
          ; preference name
          "<xsl:value-of select="$curr-pref/gschemaname"/>"
          ; preference value
-         (string-suffix? suffix "<xsl:value-of select="$curr-pref/gschemaname"/>")))
+         (string-suffix? (string-append "-" suffix) "<xsl:value-of select="$curr-pref/gschemaname"/>")))
    </xsl:if></xsl:when>
 
 



More information about the gnucash-changes mailing list