Archived
1
0
Fork 0

Pass the flavour to the Intranet when creating project

This commit is contained in:
Mercier Pierre-Olivier 2013-10-21 00:40:41 +02:00
parent ef85ae2708
commit 8e3d6e5464

View file

@ -10,9 +10,10 @@ use Carp;
use ACU::API::Base;
use ACU::LDAP;
sub add($;$)
sub add($$;$)
{
my $project_name = shift;
my $falvour = shift;
my $year = shift;
if ($year and $year != LDAP::get_year) {
@ -21,7 +22,10 @@ sub add($;$)
my $res = API::Base::send('ResultHandler',
"projects/projects/add.xml",
[ project_name => $project_name ]);
[
project_name => $project_name,
flavour => $flavour,
]);
if ($res->{result} ne '0') {
croak "Erreur durant l'ajout : ".$res->{message};