Commit 1dbfb6c7 authored by Patrick O'Keeffe's avatar Patrick O'Keeffe
Browse files

patch for required send message options (bug 1399063)

Change-Id: Ibad76d6ddafe7a7f78f075679acb3d115beaf5ba
parent bc592eb7
...@@ -182,6 +182,7 @@ $form = pieform(array( ...@@ -182,6 +182,7 @@ $form = pieform(array(
'multiple' => true, 'multiple' => true,
'ajaxextraparams' => array(), 'ajaxextraparams' => array(),
'width' => '400px', 'width' => '400px',
'rules' => array('required' => true),
), ),
'subject' => array( 'subject' => array(
'title' => get_string('titlesubject', 'artefact.multirecipientnotification'), 'title' => get_string('titlesubject', 'artefact.multirecipientnotification'),
...@@ -189,13 +190,14 @@ $form = pieform(array( ...@@ -189,13 +190,14 @@ $form = pieform(array(
'name' => 'subject', 'name' => 'subject',
'size' => '80', 'size' => '80',
'defaultvalue' => $subject, 'defaultvalue' => $subject,
'rules' => array('required' => true),
), ),
'message' => array( 'message' => array(
'type' => 'textarea', 'type' => 'textarea',
'title' => $messages ? get_string('Reply', 'group') : get_string('message'), 'title' => $messages ? get_string('Reply', 'group') : get_string('message'),
'cols' => 80, 'cols' => 80,
'rows' => 10, 'rows' => 10,
'rules' => array('maxlength' => 65536), 'rules' => array('maxlength' => 65536, 'required' => true),
), ),
'goto' => array( 'goto' => array(
'type' => 'hidden', 'type' => 'hidden',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment