Fix form element loading.

1.10.x
Julio Montoya 10 years ago
parent b0cfb21e96
commit 5fca5cb45c
  1. 2
      main/admin/user_add.php
  2. 2
      main/admin/user_edit.php
  3. 2
      main/inc/lib/pear/HTML/QuickForm.php

@ -236,7 +236,7 @@ $form->addElement('radio', 'radio_expiration_date', get_lang('ExpirationDate'),
$group = array ();
$group[] = $form->createElement('radio', 'radio_expiration_date', null, get_lang('On'), 1);
$group[] = $form->createElement(
'date',
'DatePicker',
'expiration_date',
null,
array(

@ -272,7 +272,7 @@ if (!$user_data['platform_admin']) {
$form->addElement('radio', 'radio_expiration_date', get_lang('ExpirationDate'), get_lang('NeverExpires'), 0);
$group = array ();
$group[] = $form->createElement('radio', 'radio_expiration_date', null, get_lang('On'), 1);
$group[] = $form->createElement('date', 'expiration_date', null, array('onchange' => 'javascript: enable_expiration_date();'));
$group[] = $form->createElement('DatePicker', 'expiration_date', null, array('onchange' => 'javascript: enable_expiration_date();'));
$form->addGroup($group, 'max_member_group', null, '', false);
// Active account or inactive account

@ -584,6 +584,8 @@ class HTML_QuickForm extends HTML_Common
}
}
}
} else {
$className = $type;
}
if (empty($className)) {

Loading…
Cancel
Save