Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5000

Field pattern with required flag (*) is not replaced in Grid and Tabular views

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.6.2
    • Component/s: Set: Dataform
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE

      Description

      Field pattern with required tag, e.g. [[*Text]], is not replaced in Grid and Tabular views.

      Scenario with expected outcomes (passes with Aligned view):

      Given I start afresh with dataform "Test Dataform"
      And I log in as "teacher1"
      And I follow "Course 1"
      And I follow "Test Dataform"

      Add fields
      Then I go to manage dataform "fields"
      And I add a dataform field "text" with "Text 01"

      Add a default view
      Then I follow "Views"
      And I add a dataform view "aligned" with "View 01"
      And I set "View 01" as default view

      Required *
      Then I follow "id_editview1"
      And I expand all fieldsets
      And I fill textarea "Entry template" with "[[*Text 01]]\n[[EAC:edit]]\n[[EAC:delete]]"
      And I press "Save changes"

      Add entry with required field
      Then I follow "Browse"
      And I follow "id_editentry1"
      And I press "Save"

      Then I see "You must supply a value here."

      Then I set the field "id_field_1_1" to "This world is required"
      And I press "Save"

      Then I see "This world is required"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              itamart Itamar Tzadok
              Reporter:
              itamart Itamar Tzadok
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Mar/14