Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-821

Exceptions in computed questions creates invalid entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.33.0
    • 2.32.0, 2.33.0
    • None
    • None

      If an exception occurs whil computing the value of a computed questions, the form entry will be created but incomplete (notably, the workflowId is not present and that triggers issues in dashboards).

      Steps to reproduce : 

      • Create a ComputingType that extends AbstractStaticComputingType
      • In the getComputedValue method, add a throw Exception line
      • In Ametys, create a form
      • Add the form to a page
      • Submit an entry
      • The entry will be created incomplete and an exception will be in the logs ("An error occured while storing entry")

            Unassigned Unassigned
            tcorre Thalya Corré
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: