Learnpath: adding possibility to set autolaunch when creating a LearningPath by webservice -refs BT#17453

webservicelpcreate
NicoDucou 4 years ago
parent b641bd73a0
commit 7b230ad061
  1. 5
      main/inc/lib/webservices/Rest.php

@ -2096,6 +2096,9 @@ class Rest extends WebService
/*$learningPath->setSession($session);*/
$learningPath->setSessionId($sessionId);
}
}
if (isset($spec['autolaunch']) && $spec['autolaunch']) {
$learningPath->setAutolaunch(1);
}
if (array_key_exists('lp_cat_id', $spec)) {
$categoryId = $spec['lp_cat_id'];
@ -2191,7 +2194,7 @@ class Rest extends WebService
}
}
}
}
}
Database::getManager()->flush();
return $learningPath;

Loading…
Cancel
Save