Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29701

mform disableif doesn't work on 'editor' element when wysiwig enabled

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Copy the attached testform.php to your installation
      2. Login to Moodle
      3. Open editor preferences and set editor to Atto
      4. Open http://path/to/your/moodle/testform.php on your site
      5. Toggle the checkbox a few times
        1. Confirm that the editor is enabled, and disabled as you would expect (unchecked = enabled, checked = disabled)
      6. Repeat for TinyMCE
      7. Repeat for Plain text editor
      Show
      Copy the attached testform.php to your installation Login to Moodle Open editor preferences and set editor to Atto Open http://path/to/your/moodle/testform.php on your site Toggle the checkbox a few times Confirm that the editor is enabled, and disabled as you would expect (unchecked = enabled, checked = disabled) Repeat for TinyMCE Repeat for Plain text editor
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_26_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull Master Branch:
      MDL-29701-master

      Description

      If you have a field that uses htmleditor and the user allows wysiwigs - the disableif check doesn't work - if they elect to use standard web forms in their profile - it works as expected.

      I can take a look at this - just might need some pointers on where/how to go about fixing it.

        Attachments

        1. MDL-29701_AttoEditor.PNG
          MDL-29701_AttoEditor.PNG
          15 kB
        2. MDL-29701_PlainTextEditor.PNG
          MDL-29701_PlainTextEditor.PNG
          11 kB
        3. MDL-29701_TinyMCE.PNG
          MDL-29701_TinyMCE.PNG
          17 kB
        4. test1.PNG
          test1.PNG
          38 kB
        5. test2.PNG
          test2.PNG
          36 kB
        6. testform.php
          0.6 kB

          Issue Links

            Activity

              People

              Assignee:
              phúchậumaihp Jake Hau
              Reporter:
              danmarsden Dan Marsden
              Peer reviewer:
              Tim Hunt Tim Hunt
              Integrator:
              Andrew Lyons Andrew Lyons
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              8 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Sep/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m