Project

General

Profile

Bug #4654

Easy Fix: FormElemente werden falsch rot markiert

Added by Elias Villiger about 3 years ago. Updated about 2 years ago.

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

0%

Estimated time:
Discuss:

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}}

Associated revisions

Revision e0348559 (diff)
Added by Elias Villiger about 2 years ago

Bug #4654: Better FE color highlighting (UX)

History

#1 Updated by Carsten Rose over 2 years ago

  • Target version set to next

#2 Updated by Elias Villiger about 2 years ago

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

#3 Updated by Carsten Rose about 2 years ago

  • Target version changed from next to 18.9.2

Also available in: Atom PDF