Fix project creation
This commit is contained in:
parent
b27e8e45ae
commit
67b5a79301
3 changed files with 9 additions and 3 deletions
|
|
@ -66,10 +66,13 @@ sub get_users($;$)
|
|||
|
||||
sub add_grades($;$)
|
||||
{
|
||||
my $project_name = shift;
|
||||
my $year = shift;
|
||||
my %data;
|
||||
|
||||
$data{project_name} = $project_name if (my $project_name = shift);
|
||||
$data{year} = $year if (my $year = shift);
|
||||
|
||||
$data{project_name} = $project_name if ($project_name);
|
||||
$data{year} = $year if ($year);
|
||||
|
||||
my $res = API::Base::send('ResultHandler', "projects/notes/add.xml", \%data);
|
||||
|
||||
|
|
|
|||
Reference in a new issue