From: vincent@cubedesigners.com Date: Fri, 25 May 2018 15:20:26 +0000 (+0000) Subject: fix #2066 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=48f94f1ee59eb8afb800621c72f81a01249c083d;p=cubeextranet.git fix #2066 @0.5 --- diff --git a/inc/ws/Metier/class.ws.book.parametres.php b/inc/ws/Metier/class.ws.book.parametres.php index 55985e748..486cc4b2b 100644 --- a/inc/ws/Metier/class.ws.book.parametres.php +++ b/inc/ws/Metier/class.ws.book.parametres.php @@ -539,7 +539,7 @@ class wsBookParametres extends wsParametres 'datas' => array(__('SCORM 1.2') => '1.2', __('SCORM 2004 4th edition') => '2004') ); - $this->fields['scorm_id'] = array('type' => 'text', 'default' => 'MFMCTE091mobile', 'editable' => true, 'label' => __('Identifiant SCORM'), 'grade' => 5); + $this->fields['scorm_id'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Identifiant SCORM'), 'grade' => 5); $this->fields['scorm_org'] = array('type' => 'text', 'default' => 'ACME-ORG-1350650111249', 'editable' => true, 'label' => __('Organisation SCORM'), 'grade' => 5); $this->fields['scorm_title'] = array('type' => 'text', 'default' => '', 'editable' => true, 'label' => __('Titre SCORM'), 'grade' => 5, 'hint' => __('Laisser vide pour utiliser le titre de la publication')); $this->fields['scorm_variables'] = array('type' => 'textarea', 'default' => '', 'editable' => true, 'label' => __('Variables SCORM'), 'grade' => 5, 'hint' => __('Laisser vide pour utiliser le titre de la publication')); diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index fd18a8512..ec8cb08c5 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -718,7 +718,7 @@ class wsHTML5Compiler if (!$this->book->parametres->scorm_title) { $this->book->parametres->scorm_title = $this->book->parametres->title; } - if (!$this->book->parametres->scorm_id) { + if (!$this->book->parametres->scorm_id || ($this->book->parametres->id > 16614 && $this->book->parametres->scorm_id == 'MFMCTE091mobile')) { $this->book->parametres->scorm_id = 'fb_' . $this->book->parametres->id; } if (!$this->book->parametres->scorm_org) {