- π©π°Denmark ressa Copenhagen
Thanks for sharing a pragmatic Twig solution in #16 π Decimal separator and decimals settings ignored when aggregating decimal fields Needs work @Ben Greenberg. Drupal 10 is now on Twig 3 β , so the URL is https://twig.symfony.com/doc/3.x/filters/number_format.html, but the syntax is the same.
- π¨π¦Canada joelpittet Vancouver
@akram khan Thanks for the patch, could you explain the changes you made so we are all clear as your reroll added more removals than @ramil g did.
- π¨π¦Canada joelpittet Vancouver
We have various screenshots on this issue, so removing the PHP related issue tag and needs screenshots.
- π¨π¦Canada joelpittet Vancouver
Thanks @ramil g. The test looks great and it's red/green on test-only/with fix. π it!
- π¨π¦Canada joelpittet Vancouver
Moving priority due to the PHP error that is triggered
https://www.drupal.org/docs/develop/issues/fields-and-other-parts-of-an-... βTrigger a PHP error through the user interface, but only under rare circumstances or affecting only a small percentage of all users, even if there is a workaround.
- π³πΏNew Zealand quietone
I tested on Drupal 11.x today, standard install and reproduce the problem. Applied the diff and the problem was fixed. Updated credit.
There are no screenshots in the issue summary. Ah, I see they are in #44. @asad_ahmed, when adding screenshots it helps everyone working on the issue if they are available from the issue summary. This save reviewers and committers from hunting through the comments to find the correct images.
Can someone explain why the test is not testing the scenario in the Issue Summary? The test seems to be testing a different problem. It is a problem I encountered when testing this. The problem was that I could not change the aggregate settings from 'Sum' to anything else. Settings to NW to understand the testings.
- π¨π¦Canada joelpittet Vancouver
@quietone I don't believe the screenshots in #44 accurately display the root problem for why the decimal settings change between aggregation being on and off.
I added the screenshot from #38 which identifies where this stems from to the issue summary, which displays the accidental copy/paste error in https://git.drupalcode.org/project/drupal/-/commit/684b4a036e736b16d21a1..., which manifests itself into the originally reported issue as well as other Views UI issues including the error I mentioned in #56 when I bumped the priority and which @ramil g wrote the tests against.
Also I added a bunch more screenshots to the IS illustrating both problems.
One thing I don't know how to change the title to indicate the original issue is resolved + issues with any numeric aggregated field? Any suggestions?
- π¨π¦Canada joelpittet Vancouver
LMK if thereβs anything I can do to get this patch committed. It should be a slam dunk, but I may be missing something thatβs holding it up.