Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 991

Přidáno uživatelem Michal Kliment před více než 13 roky(ů)

Oprava chyb - opravena chyba znemoznujici si radnym clenum pridavat dalsi uzivatele. Dale opravena chyba u editace prace, kde se nespravne menila desetinna tecka na carku, viz http://vyuka.slfree.net/mod/forum/discuss.php?d=1697

Zobrazit rozdíly:

freenetis/branches/testing/application/controllers/users.php
$user_data->middle_name = $form_data['middle_name'];
$user_data->surname = $form_data['surname'];
$user_data->post_title = $form_data['post_title'];
$user_data->comment = $form_data['comment'];
if (isset($form_data['comment']))
$user_data->comment = $form_data['comment'];
$user_data->type = User_Model::$user;
$user_data->member_id = $member_id;
$user_data->application_password = security::generate_password();
freenetis/branches/testing/application/controllers/works.php
$this->form->dropdown('user_id')->label(url_lang::lang('texts.User'))->options($arr_users)->rules('required')->selected($work->user_id);
$this->form->textarea('description')->label(url_lang::lang('texts.Description').':')->rules('required|length[0,65535]')->value($work->description);
$this->form->date('date')->label(url_lang::lang('texts.Date').':')->years(date('Y')-10, date('Y'))->rules('required')->value(strtotime($work->date));
$this->form->input('hours')->label(url_lang::lang('texts.Hours').':')->rules('required|length[0,250]|valid_numeric')->value($work->hours);
$this->form->input('km')->label(url_lang::lang('texts.Km').':')->rules('length[0,250]|valid_numeric')->value($work->km);
$this->form->input('suggest_amount')->label(url_lang::lang('texts.Suggest amount').':')->rules('required|valid_numeric')->value($work->suggest_amount);
$this->form->input('hours')->label(url_lang::lang('texts.Hours').':')->rules('required|length[0,250]|valid_numeric')->value(num::decimal_point($work->hours));
$this->form->input('km')->label(url_lang::lang('texts.Km').':')->rules('length[0,250]|valid_numeric')->value(num::decimal_point($work->km));
$this->form->input('suggest_amount')->label(url_lang::lang('texts.Suggest amount').':')->rules('required|valid_numeric')->value(num::decimal_point($work->suggest_amount));
if ($this->acl_check_view('approval','templates'))
{

Také k dispozici: Unified diff