r18528 - gnucash/trunk/src/app-utils - Fix bug #603215 - Custom report from Budget Report does not save selected Budget

Phil Longstaff plongstaff at code.gnucash.org
Sat Dec 19 19:25:51 EST 2009


Author: plongstaff
Date: 2009-12-19 19:25:50 -0500 (Sat, 19 Dec 2009)
New Revision: 18528
Trac: http://svn.gnucash.org/trac/changeset/18528

Modified:
   gnucash/trunk/src/app-utils/options.scm
Log:
Fix bug #603215 -  Custom report from Budget Report does not save selected Budget

Problem was how budget option tried to create the lambda function to restore the value.


Modified: gnucash/trunk/src/app-utils/options.scm
===================================================================
--- gnucash/trunk/src/app-utils/options.scm	2009-12-18 19:45:57 UTC (rev 18527)
+++ gnucash/trunk/src/app-utils/options.scm	2009-12-20 00:25:50 UTC (rev 18528)
@@ -325,9 +325,7 @@
          (value (budget->guid default-value))
          (option-set #f)
          (value->string (lambda ()
-                          (string-append
-                           "'" (gnc:value->string (if option-set option #f)))))
-
+                          (string-append "'" (gnc:value->string value))))
          )
     (gnc:make-option
      section name sort-tag 'budget documentation-string



More information about the gnucash-changes mailing list