Created on 28 March 2021, over 3 years ago
Updated 15 April 2023, over 1 year ago

Problem/Motivation

My Webform has a "number of tickets" entry and I want to sum them to see how many were sold. It is an integer number

Steps to reproduce

I made a view with a table with aggregation. But when I view it, I get php errors:
Error TypeError: Argument 3 passed to
Drupal\views_aggregator\Plugin\views\style\Table::ren
derNewWebformValue() must be of the type array, float
given, called in /home/orcmaorg/public_html/web/m
563121 27/Mar 17:03 php Notice Notice: A non well formed numeric value encountered
in __TwigTemplate_a3a50bb5f1daf37aa981f1e2492ba954800060
3bd312153597618706fa350ce2->doDisplay() (line 44 of

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States tjtj

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

  • !22Type Error
    Open

    πŸ‡ΊπŸ‡ΈUnited States tr
    updated about 1 month ago

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΈπŸ‡ͺSweden sl27257 Stockholm

    +1 for patch #8

  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia
  • Merge request !22Issue #3206144 by tsmorisawa: Type Error β†’ (Open) created by tr
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    I moved this to the current branch of this module, and I re-rolled the patch from #8 and put it into a MR so that it can be tested on GitLab CI.

    None of the Wbform-specific code in this module is currently being tested at all. It is not maintainable. If we are going to make exceptions for Webform fields then we really really really need test cases for those exceptions. Can you write a simple test for this, hopefully without requiring the test to have a full install of Webform?

  • πŸ‡ΈπŸ‡ͺSweden sl27257 Stockholm

    Hi,
    I am sorry, I used this in an event-site which now is removed. So unfortunately I have no easy way to write test code (and check that it behaves correctly for this case.)

    /Thomas

Production build 0.71.5 2024