After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746155 - Reports: html-acct-table prepend-row! & prepend-col! unknown variables
Reports: html-acct-table prepend-row! & prepend-col! unknown variables
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
2.6.5
Other All
: Normal minor
: ---
Assigned To: gnucash-reports-maint
gnucash-reports-maint
Depends on:
Blocks:
 
 
Reported: 2015-03-13 13:41 UTC by Tony Kerns
Modified: 2018-06-29 23:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tony Kerns 2015-03-13 13:41:29 UTC
The following functions cause unknown variable errors:

(define (gnc:html-acct-table-prepend-row! acct-table newrow)
  (gnc:html-table-prepend-row!
   (gnc:_html-acct-table-matrix_ acct-table)
   (map
    (lambda (x) (gnc:make-html-table-cell (list x)))
    objects)))

(define (gnc:html-acct-table-prepend-col! acct-table newrow)
  (gnc:html-table-prepend-col!
   (gnc:_html-acct-table-matrix_ acct-table)
   (map
    (lambda (x) (gnc:make-html-table-cell (list x)))
    objects)))

In the lambdas, 'objects' has not been defined. For -prepend-row!, 'objects' should be changed to 'newrow'. For -prepend-col!, 'newrow' & 'objects' should be changed to 'newcol'.

For the sake of consistency, 'objects' in the -append-row & -append-col functions could also be changed to 'newrow' & 'newcol', respectively.
Comment 1 Geert Janssens 2015-12-18 17:14:04 UTC
Thanks for reporting this and proposing a solutions as well. I have followed your suggestion to fix this issue.

It will be fixed for the upcoming 2.6.10 release.
Comment 2 John Ralls 2018-06-29 23:39:21 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=746155. Please update any external references or bookmarks.