Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math widget: Option math_priority appears broken #1318

Closed
Chealer opened this issue Nov 22, 2016 · 2 comments
Closed

Math widget: Option math_priority appears broken #1318

Chealer opened this issue Nov 22, 2016 · 2 comments

Comments

@Chealer
Copy link

Chealer commented Nov 22, 2016

I have never used option math_priority before, but it seems to be ineffective in 2.27.8 if I try to get rows to be computed after columns. In the attached testcase, the table's last cell is empty, unless the

$("#tableauGroupes").trigger('recalculate');

line is enabled. The cell is based on values to its left, which are based on values from columns above. Therefore, unless there is confusion,

math_priority : [ 'col', 'row', 'above', 'below' ],

should allow calculating the totals before calculating the last cell, which uses custom function pourcentageAssurance. Yet, when the function executes, it is given an array of zeroes, which means the total line still has dummy values (string "Chargement", which is converted to 0).

This happens in 2 browsers on 2 tested (Firefox 50 and Google Chrome 54).

@Chealer
Copy link
Author

Chealer commented Nov 22, 2016

Sorry. HTML attachments are not allowed, and this is invalid.

@Chealer
Copy link
Author

Chealer commented Nov 22, 2016

I reported the issue which caused me to report this invalid ticket in ticket #1319.

@Chealer Chealer closed this as completed Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant