Skip to content

Commit

Permalink
Management of form tabs visibility expression = '' (#1047) (#1048)
Browse files Browse the repository at this point in the history
(cherry picked from commit ab7ecdb)

Co-authored-by: Walter Lorenzetti <[email protected]>
  • Loading branch information
github-actions[bot] and wlorenzetti authored Feb 13, 2025
1 parent eee92ee commit 82ec7ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions g3w-admin/qdjango/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,8 @@ def build_form_tree_object(elements):
visibility_expression = element.visibilityExpression()
if visibility_expression.enabled():
expression = visibility_expression.data()
if expression.expression() == '':
raise Exception('Expression is empty')
to_ret_node['visibility_expression'] = {
'expression': expression.expression(),
'referenced_columns': list(expression.referencedColumns()),
Expand Down

0 comments on commit 82ec7ba

Please sign in to comment.