Permalink
Browse files

MDL-40933 Administration: Added 'is after' and 'is before' to date fi…

…lter
  • Loading branch information...
1 parent f171a8c commit dcb5678e99b453a9cefd0c6e335c8e8ba3ee8cf2 @rajeshtaneja rajeshtaneja committed Jul 30, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 user/filters/date.php
View
2 user/filters/date.php
@@ -30,8 +30,10 @@ function user_filter_date($name, $label, $advanced, $field) {
function setupForm(&$mform) {
$objs = array();
+ $objs[] =& $mform->createElement('static', $this->_name.'_sck', null, get_string('isafter', 'filters'));
$objs[] =& $mform->createElement('date_selector', $this->_name.'_sdt', null, array('optional' => true));
$objs[] =& $mform->createElement('static', $this->_name.'_break', null, '<br/>');
+ $objs[] =& $mform->createElement('static', $this->_name.'_edk', null, get_string('isbefore', 'filters'));
$objs[] =& $mform->createElement('date_selector', $this->_name.'_edt', null, array('optional' => true));
$grp =& $mform->addElement('group', $this->_name.'_grp', $this->_label, $objs, '', false);

0 comments on commit dcb5678

Please sign in to comment.