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

Creating matrix view (and possibly other views) with URL field does not work properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.3.2
    • Module: Dataform
    • None
    • MOODLE_23_STABLE

      If I create a field "URL" in the dataform module. And I then try to use that field in a view (editor enabled), the link gets destroyed by the editor and/or a moodle filter. The tag for the url field: [[myurl]] gets urlencoded. Saving a view with the editor disabled (standard html forms in the user profile) works only for the first time it is saved. When the view is edited/changed again, the tag [[myurl]] is destroyed and will not work when saved again.
      Example of a filtered tag:
      href="http://www.virtuelle-ph.at/%5B%5BAnmeldelink2%5D%5D"

      Neither href=[[myurl]] nor href="[[myurl]]" does work properly. (The first time it is created it OK, but on editing a view again, all the tags have to be replaced.

      What could help is the following:
      ->possibility to turn off the editor (does not solve the problem entirely)
      ->change the URL field behaviour: Possibility to add linktext, and style classes to the link. But also keep in mind, that in some cases only the url is needed, not the a tag (in forms...)
      ->disable urlencode filtering of the text of a view.
      ->Perhaps take a look at how the database activity handles the url field?

      How to reproduce:
      Create field URL
      Create a view (matrix)
      Save the view (Save changes, do not use Save and continue)
      Create an entry
      Edit the view again -> [[myurl]] is destroyed

            itamart Itamar Tzadok (Inactive)
            dasistwas David Bogner
            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.