Active
Project:
Views Aggregator Plus
Version:
2.0.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2023 at 11:56 UTC
Updated:
13 Jan 2023 at 12:22 UTC
Jump to comment: Most recent
On custom views field, created with plugin, and rendered with render function, the calculation is not done on the custom value (the which one that comes from the plugin) but on the raw value from database.
Just create a custom view plugin field, that has a value overrided by render function. Then create a view with views_aggregator and check.
Maybe I just have to change the views field plugin to alter the data itself, and not just the render function.
Comments
Comment #2
sepa_cleversoft commentedI fount the problem. It is related only to decimals. The dot is trimmed out from calculation, so 0.5 became 5. Do you have idea on how to fix this?