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

HTML Block should require the config_text field

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.7, 2.1.4, 2.2.1
    • Fix Version/s: 2.1.4, 2.2.1
    • Component/s: Blocks
    • Labels:
    • Testing Instructions:
      Hide

      Before

      • create a new HTML block
      • edit the block settings
      • save the form without filling in any content

      With Patch

      • create a new HTML block
      • edit the block settings
      • attempt to save the form without any content
      • ensure that the form is rejected without content
      • enter content
      • ensure that the form can now be submitted
      Show
      Before create a new HTML block edit the block settings save the form without filling in any content With Patch create a new HTML block edit the block settings attempt to save the form without any content ensure that the form is rejected without content enter content ensure that the form can now be submitted
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-30805-master-1

      Description

      The HTML block defines a 'config_text' element to contain the HTML, but it isn't required.
      Given the nature of the block, it should ideally be a required field

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              dobedobedoh Andrew Nicols added a comment -

              I've submitted this fix to require the HTML content on the HTML block.
              For the most part this isn't strictly required in Moodle, but would make sense in the context of the shortforms feature (MDL-30637)

              Show
              dobedobedoh Andrew Nicols added a comment - I've submitted this fix to require the HTML content on the HTML block. For the most part this isn't strictly required in Moodle, but would make sense in the context of the shortforms feature ( MDL-30637 )
              Hide
              rwijaya Rossiani Wijaya added a comment -

              Hi Andrew,

              Thank you for reporting and providing patch to fix this.

              The patch looks good.

              Submitting for integration review.

              Rosie

              Show
              rwijaya Rossiani Wijaya added a comment - Hi Andrew, Thank you for reporting and providing patch to fix this. The patch looks good. Submitting for integration review. Rosie
              Hide
              salvetore Michael de Raadt added a comment -

              This should jump from the STABLE backlog to a fix version when it is integrated.

              Show
              salvetore Michael de Raadt added a comment - This should jump from the STABLE backlog to a fix version when it is integrated.
              Hide
              stronk7 Eloy Lafuente (stronk7) added a comment -

              The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week.

              TIA and ciao

              Show
              stronk7 Eloy Lafuente (stronk7) added a comment - The main moodle.git repository has just been updated with latest weekly modifications. You may wish to rebase your PULL branches to simplify history and avoid any possible merge conflicts. This would also make integrator's life easier next week. TIA and ciao
              Hide
              samhemelryk Sam Hemelryk added a comment -

              Changes look good thanks Andrew, this will be integrated in the next integration cycle (hopefully later today).

              Cheers
              Sam

              Show
              samhemelryk Sam Hemelryk added a comment - Changes look good thanks Andrew, this will be integrated in the next integration cycle (hopefully later today). Cheers Sam
              Hide
              samhemelryk Sam Hemelryk added a comment -

              Thanks Andrew, this has been integrated now

              Show
              samhemelryk Sam Hemelryk added a comment - Thanks Andrew, this has been integrated now
              Hide
              skodak Petr Skoda added a comment -

              tested, thanks

              Show
              skodak Petr Skoda added a comment - tested, thanks
              Hide
              stronk7 Eloy Lafuente (stronk7) added a comment -

              The git and cvs repositories are happy receiving your very first contribution to Moodle for 2012. Happy new year!

              Closing, ciao

              Show
              stronk7 Eloy Lafuente (stronk7) added a comment - The git and cvs repositories are happy receiving your very first contribution to Moodle for 2012. Happy new year! Closing, ciao

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Jan/12