|
|
|
@ -132,15 +132,15 @@ function edit_category_form($action) |
|
|
|
|
get_lang('CategoryDescription'), |
|
|
|
|
false, |
|
|
|
|
false, |
|
|
|
|
['ToolbarSet' => 'test_category', 'Height' => '200'] |
|
|
|
|
['ToolbarSet' => 'TestQuestionDescription', 'Height' => '200'] |
|
|
|
|
); |
|
|
|
|
$form->addButtonSave(get_lang('ModifyCategory'), 'SubmitNote'); |
|
|
|
|
|
|
|
|
|
// setting the defaults |
|
|
|
|
$defaults = []; |
|
|
|
|
$defaults["category_id"] = $objcat->id; |
|
|
|
|
$defaults["category_name"] = $objcat->name; |
|
|
|
|
$defaults["category_description"] = $objcat->description; |
|
|
|
|
$defaults['category_id'] = $objcat->id; |
|
|
|
|
$defaults['category_name'] = $objcat->name; |
|
|
|
|
$defaults['category_description'] = $objcat->description; |
|
|
|
|
$form->setDefaults($defaults); |
|
|
|
|
|
|
|
|
|
// setting the rules |
|
|
|
@ -213,7 +213,7 @@ function add_category_form($action) |
|
|
|
|
get_lang('CategoryDescription'), |
|
|
|
|
false, |
|
|
|
|
false, |
|
|
|
|
['ToolbarSet' => 'test_category', 'Height' => '200'] |
|
|
|
|
['ToolbarSet' => 'TestQuestionDescription', 'Height' => '200'] |
|
|
|
|
); |
|
|
|
|
$form->addButtonCreate(get_lang('AddTestCategory'), 'SubmitNote'); |
|
|
|
|
// setting the rules |
|
|
|
|