Patch for symbol/string confusion in transaction.scm

James A. Treacy treacy at debian.org
Thu Apr 3 14:08:47 CST 2003


My feeble ability in guile has created the following patch for
transaction.scm. Please apply if you feel it is correct.
This is a result of debian bug #186004 (http://bugs.debian.org/186004).

--- src/report/standard-reports/transaction.scm.j       2003-04-03
13:57:35.000000000 -0500
+++ src/report/standard-reports/transaction.scm 2003-04-03
13:58:01.000000000 -0500
@@ -1142,7 +1142,7 @@
 
          ;;This should probably a cond or a case to allow for different
filter types.
          ;;(gnc:warn "Filter Mode: " filter-mode)
-         (if (string=? filter-mode "include")
+         (if (string=? (symbol->string filter-mode) "include")
              (begin
                ;;(gnc:warn "Including Filter Accounts")
                (set! splits (filter (lambda (split) 
@@ -1151,7 +1151,7 @@
                )
              )
 
-         (if (string=? filter-mode "exclude")
+         (if (string=? (symbol->string filter-mode) "exclude")
              (begin
                ;;(gnc:warn "Excluding Filter Accounts")
                (set! splits (filter (lambda (split)

-- 
James (Jay) Treacy
treacy at debian.org


More information about the gnucash-patches mailing list