Revize a4f9d68e
Přidáno uživatelem Ondřej Fibich před více než 6 roky(ů)
application/controllers/members.php | ||
---|---|---|
->rules('required')
|
||
->callback(array($this, 'valid_entrance_date'));
|
||
|
||
if ($this->acl_check_edit('Members_Controller', 'registration'))
|
||
{
|
||
$form->dropdown('registration')
|
||
->options(arr::rbool());
|
||
}
|
||
|
||
$form->textarea('comment')
|
||
->rules('length[0,250]');
|
||
|
||
... | ... | |
{
|
||
$member->entrance_date = date('Y-m-d', $form_data['entrance_date']);
|
||
}
|
||
|
||
if ($this->acl_check_edit('Members_Controller', 'registration'))
|
||
{
|
||
$member->registration = $form_data['registration'];
|
||
}
|
||
|
||
// saving member
|
||
$member->save_throwable();
|
Také k dispozici: Unified diff
Fixes #1093: Allows to set registration field during member adding.