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

Dataform behat steps for setting view and entry templates.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.4, 2.7.1
    • 2.7.1
    • Set: Dataform
    • None
    • MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE

      With this improvement it will be possible to use one "background" type step to set view or entry template in a view, instead of the long way via the view edit form.

      These steps will also work around a current limitation of the standard step

      I set the field "FIELDNAME" to "VALUE"
      

      which cannot handle values with multiple lines (because it uses javascript to set the editor content). The steps will use Py String for value and will perform low level update of the template, that is, via the dataformview api.

      The syntax of the new steps will be

      And view "VIEWNAME" in dataform "DATAFORMID" has the following view template:
      """
      first line of template content
      ...
      last line of template content
      """
      

      and

      And view "VIEWNAME" in dataform "DATAFORMID" has the following entry template:
      """
      first line of template content
      ...
      last line of template content
      """
      

            itamart Itamar Tzadok (Inactive)
            itamart Itamar Tzadok (Inactive)
            Itamar Tzadok Itamar Tzadok (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.