1
0
Fork 0
mirror of https://github.com/Oreolek/kangana.git synced 2024-05-05 02:28:17 +03:00

Display group id in course editing

This commit is contained in:
Alexander Yakovlev 2016-11-12 12:27:43 +07:00
parent 0ea30dc1d2
commit 6762f6afd0

View file

@ -6,7 +6,7 @@
class View_Course_Edit extends View_Edit {
public function custom_controls()
{
return Form::select('group_id', ORM::factory('Group')->find_all()->as_array('id', 'name'), NULL, [
return Form::select('group_id', ORM::factory('Group')->find_all()->as_array('id', 'name'), $this->model->group_id, [
'label' => I18n::translate('Group')
]).Form::select('type', Model_Course::type_labels(), $this->model->type, [
'label' => I18n::translate('Type')