Преглед изворни кода

Fix edition in course categories

Yannick Warnier пре 10 година
родитељ
комит
fd6bdb18d9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      main/admin/course_category.php

+ 1 - 1
main/admin/course_category.php

@@ -77,7 +77,7 @@ if ($action == 'add' || $action == 'edit') {
         if (!empty($category)) {
             $form_title .= ' ' . get_lang('Into') . ' ' . Security::remove_XSS($category);
         }
-        $url = api_get_self().'?action='.Security::remove_XSS($action).'&category='.Security::remove_XSS($category).'&id='.Security::remove_XSS($category);
+        $url = api_get_self().'?action='.Security::remove_XSS($action).'&category='.Security::remove_XSS($category).'&id='.Security::remove_XSS($categoryId);
         $form = new FormValidator('course_category', 'post', $url);
         $form->addElement('header', '', $form_title);
         $form->addElement('hidden', 'formSent', 1);