Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-394

Required field mark (*) is displayed for read-only fields

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.0.2-B1
    • Fix Version/s: None
    • Component/s: Admin Interfaces
    • Labels:
      None
    • Additional information:
      Hide

      About testing this could be very simple to test, because there are only few cases:

      • field is initially required;
      • field is made required via OnBeforeItemUpdate/OnBeforeItemCreate event later;
      • field is not required.

      For each mentioned case there are only 3 parameter (that new one) values:

      • show asterisk based on actual required setting;
      • always show asterisk;
      • always hide asterisk.

      This makes 9 test cases.

      Show
      About testing this could be very simple to test, because there are only few cases: field is initially required; field is made required via OnBeforeItemUpdate/OnBeforeItemCreate event later; field is not required. For each mentioned case there are only 3 parameter (that new one) values: show asterisk based on actual required setting; always show asterisk; always hide asterisk. This makes 9 test cases.
    • Story Points:
      1
    • External issue ID:
      477
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      In case if field is required, that red asterisk is displayed after field name to indicate that it's mandatory. This makes sense, when user can enter value in field, but doesn't make sense, when field is read-only, e.g. when "inp_label" block is used instead of "inp_edit_box" block.

      I propose we add new parameter to all form blocks named "required", that could have 3 values:

      • empty - automatic detection of asterisk presence;
      • 1 - always display red asterisk no matter is field required or not
      • 0 - always hide red asterisk no matter is field required or not

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alex Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: