[svn r14270] fix a bug when saving item (the param prerec_check cas not passed to parent class)

FS#2233
skala
Eric Marguin 17 years ago
parent b0b635429e
commit f52c42151a
  1. 4
      main/newscorm/aiccItem.class.php
  2. 4
      main/newscorm/scormItem.class.php

@ -124,9 +124,9 @@ class aiccItem extends learnpathItem{
* Save function. Uses the parent save function and adds a layer for AICC.
* @param boolean Save from URL params (1) or from object attributes (0)
*/
function save($from_outside=true)
function save($from_outside=true, $prereqs_complete=false)
{
parent::save($from_outside);
parent::save($from_outside, $prereqs_complete=false);
//under certain conditions, the scorm_contact should not be set, because no scorm signal was sent
$this->aicc_contact = true;
if(!$this->aicc_contact){

@ -290,9 +290,9 @@ class scormItem extends learnpathItem{
* Save function. Uses the parent save function and adds a layer for SCORM.
* @param boolean Save from URL params (1) or from object attributes (0)
*/
function save($from_outside=true)
function save($from_outside=true,$prereqs_complete=false)
{
parent::save($from_outside);
parent::save($from_outside,$prereqs_complete);
//under certain conditions, the scorm_contact should not be set, because no scorm signal was sent
$this->scorm_contact = true;
if(!$this->scorm_contact){

Loading…
Cancel
Save