Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-30805 Require HTML content for the HTML block configuration

  • Loading branch information...
commit f59aa125e2fae2d98f2e61edb59f0c391df04546 1 parent 39f8f2e
Andrew Nicols authored samhemelryk committed

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  blocks/html/edit_form.php
1  blocks/html/edit_form.php
@@ -39,6 +39,7 @@ protected function specific_definition($mform) {
39 39
 
40 40
         $editoroptions = array('maxfiles' => EDITOR_UNLIMITED_FILES, 'noclean'=>true, 'context'=>$this->block->context);
41 41
         $mform->addElement('editor', 'config_text', get_string('configcontent', 'block_html'), null, $editoroptions);
  42
+        $mform->addRule('config_text', null, 'required', null, 'client');
42 43
         $mform->setType('config_text', PARAM_RAW); // XSS is prevented when printing the block contents and serving files
43 44
     }
44 45
 

0 notes on commit f59aa12

Please sign in to comment.
Something went wrong with that request. Please try again.