GNOME Bugzilla – Bug 779411
jqplot code leaks to other reports in multi-column report
Last modified: 2018-06-29 23:54:52 UTC
Noticed this today by chance: I've set up a multi-column report with 2 charts: a bar chart and a pie chart. Hovering over the bar chart will pop up a tool tip with more detail on the bar being hovered over. When hovering the pie chart this doesn't happen (which shouldn't as it's not implemented). However the trace fill will now receive lots of lines like this: WARN <gnc.html> [webkit_console_msg_cb()] JS: file:////kobaltnet/janssege-development/installs/kdevelop/gnucash/master/share/gnucash/jqplot/jqplot.cursor.js (488): TypeError: undefined is not an object (evaluating 'plot.axes[g[j]]._ticks[0].formatter') and WARN <gnc.html> [webkit_console_msg_cb()] JS: file:////kobaltnet/janssege-development/installs/kdevelop/gnucash/master/share/gnucash/jqplot/jqplot.highlighter.js (240): TypeError: undefined is not an object (evaluating 'series._xaxis._ticks[0].formatter') Opening the report also started with lines like: WARN <gnc.html> [webkit_console_msg_cb()] JS: file:////kobaltnet/janssege-development/installs/kdevelop/gnucash/master/share/gnucash/jqplot/ (1): SyntaxError: Unexpected token '<' However I guess this is a separate issue. Just mentioning it for completeness. Note none of this happens when the same piechart is opened as an independent report (that is not as part of a multi-column report).
Created attachment 347699 [details] [review] Piechart changes and syntax change This patch should fix the errors you are seeing by setting a couple of pie chart options to false and changing the way the extra js lines are removed. Bob
Lovely. Thanks for fixing this ! The fix will be released in the next stable gnucash version at the end of this month.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=779411. Please update any external references or bookmarks.