Project

General

Profile

Actions

Bug #4654

closed

Easy Fix: FormElemente werden falsch rot markiert

Added by Elias Villiger over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Elias Villiger
Target version:
Start date:
28.09.2017
Due date:
% Done:

0%

Estimated time:
Discuss:
Prio Planung:

Description

Bei Form mit bestehenden Pills werden FormElemente (FE) korrekt rot markiert, wenn sie keinem Pill zugewiesen sind.
Bei einer Form ohne Pills, bei der es aber andere Containers (templateGroup oder fieldset) gibt, werden dann fälschlicherweise alle FormElemente, die nicht der templateGroup/fieldset zugewiesen sind, rot markiert.

Lösung: Das FormElement "FormElement" des Formulars "form" braucht im Feld "sql1" eine zusätzliche Bedingung

AND feCX.type="pill"

Neuer Wert im Feld sql1:
{{!SELECT IF( fe.enabled="yes", IF( fe.enabled="yes" AND fe.feIdContainer=0 AND !ISNULL(feCX.id) AND fe.class="native", "danger", IF( fe.class="container", "text-info", IF( fe.class="action", "text-success", ""))), "text-muted") AS _rowClass, IF( fe.enabled="yes", IF(fe.feIdContainer=0 AND !ISNULL(feCX.id) AND fe.class="native", "Please choose a container for this formelement", fe.class), "Disabled") AS _rowTitle, fe.id, CONCAT( IFNULL( CONCAT( feC.name, " (", fe.feIdContainer, ")"),"")) AS Container, fe.name AS "Name|50", fe.label, fe.mode, fe.class, fe.type, fe.ord, IF(fe.dynamicUpdate="yes", '<span class="glyphicon glyphicon-random"></span>',"") AS "dyn|||nostrip", fe.parameter FROM FormElement AS fe LEFT JOIN FormElement AS feC ON feC.id=fe.feIdContainer AND feC.formId=fe.formId LEFT JOIN FormElement AS feCX ON feCX.class="container" AND feCX.enabled="yes" AND feCX.type="pill" AND feCX.formId=fe.formId WHERE fe.formId={{id:R0}} GROUP BY fe.id ORDER BY fe.class DESC, feC.ord, fe.ord, fe.id}}

Actions #1

Updated by Carsten Rose over 4 years ago

  • Target version set to 55
Actions #2

Updated by Elias Villiger over 4 years ago

  • Status changed from New to Closed
  • Assignee changed from Carsten Rose to Elias Villiger
Actions #3

Updated by Carsten Rose over 4 years ago

  • Target version changed from 55 to 18.9.2
Actions

Also available in: Atom PDF