Skip to content

Conditional trigger not saved in questionnaire (v5.0.72) #4583

@blitzlepe

Description

@blitzlepe

Prerequisites

What version of GlobaLeaks are you using?

I'm running GlobaLeaks v5.0.72

On which distribution/version is GlobaLeaks installed?

Ubuntu 24.04.2

What browser(s) are you seeing the problem on?

Chrome, Microsoft Edge, All

What operating system(s) are you seeing the problem on?

All

Describe the issue

Summary

I'm running GlobaLeaks v5.0.72 and trying to use the trigger condition feature to show a question only when a previous selection field has a specific value. However, the condition is not saved correctly.

Steps to reproduce

  1. Create a questionnaire section with a selection-type question (e.g. "Operation type" with values: A, B, C).
  2. Create another question (e.g. "Account number") and set a trigger condition:
    • Question: "Operation type"
    • Value: "Deposit to account"
    • (Checkbox "Sufficient" checked or unchecked — both tested)
  3. Save the question, then save the section, then save the full questionnaire.
  4. Re-open the question and check the conditions.

Expected behavior

The trigger condition should persist and be displayed under the "Trigger Conditions" section.

Actual behavior

The condition disappears after saving. The UI shows an empty or broken condition block with just a red “X”.

Notes

  • Tested with both template-type and normal questions.
  • Same behavior occurs regardless of whether “Sufficient” is checked.
  • Tested with different browsers and multiple question types.

System

  • GlobaLeaks version: 5.0.72
  • Install type: Local installation (manual)
  • Browser: [e.g., Chrome 124, Firefox 115, etc.]

Let me know if logs or debug output are needed.

Proposed solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions