Adding Session Category problem

Hi,

I'm using dokeos 2.1 and when i'm trying to add a session category by clicking "Add a Category" button, the page refreshes and doesn't create the session category.

Any help would be appreciated

Thank you

mohan's picture

Adding session category

 

Hi,
 
I checked the problem in adding session category in Dokeos 2.1. can you please update the code below to fix the issue,
 
File - main/admin/session_category_add.php
 
At around line no: 54 you have the following code
 
$return =
SessionManager::create_category_session($name,$year_start,$month_start,$day_start,$year_end,$month_end,$day_end);
 
can you please replace the above code with the below lines
 
$description = '';
$return =
SessionManager::create_category_session($name,$description,$year_start,$month_start,$day_start,$year_end,$month_end,$day_end);
 
save the file and check by adding session category. I hope it will fix the issue.
 
Thanking you,