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. 3
      main/inc/lib/webservices/Rest.php

@ -2097,6 +2097,9 @@ class Rest extends WebService
$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'];
if (0 == $categoryId) {

Loading…
Cancel
Save