If the status was changed, then updated it. Don't need to set a score.

See #5745 and BT#8572
1.9.x
Julio Montoya 11 years ago
parent 2306972799
commit b16193e021
  1. 16
      main/newscorm/lp_ajax_save_item.php

@ -156,17 +156,17 @@ function save_item(
if ($debug > 1) { error_log('Done calling set_score '.$mylpi->get_score(), 0); }
} else {
if ($debug > 1) { error_log("Score not updated"); }
}
// Default behaviour
if (isset($status) && $status != '' && $status != 'undefined') {
if ($debug > 1) { error_log('Calling set_status('.$status.')', 0); }
// Default behaviour.
if (isset($status) && $status != '' && $status != 'undefined') {
if ($debug > 1) { error_log('Calling set_status('.$status.')', 0); }
$mylpi->set_status($status);
$mylpi->set_status($status);
if ($debug > 1) { error_log('Done calling set_status: checking from memory: '.$mylpi->get_status(false), 0); }
} else {
if ($debug > 1) { error_log("Status not updated"); }
}
if ($debug > 1) { error_log('Done calling set_status: checking from memory: '.$mylpi->get_status(false), 0); }
} else {
if ($debug > 1) { error_log("Status not updated"); }
}
// Hack to set status to completed for hotpotatoes if score > 80%.

Loading…
Cancel
Save