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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.2
    • 2.6.2
    • Set: Dataform
    • None
    • MOODLE_26_STABLE
    • 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

              itamart Itamar Tzadok
              itamart Itamar Tzadok
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Mar/14