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. 4
      main/newscorm/lp_ajax_save_item.php

@ -156,8 +156,9 @@ 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
// Default behaviour.
if (isset($status) && $status != '' && $status != 'undefined') {
if ($debug > 1) { error_log('Calling set_status('.$status.')', 0); }
@ -167,7 +168,6 @@ function save_item(
} else {
if ($debug > 1) { error_log("Status not updated"); }
}
}
// Hack to set status to completed for hotpotatoes if score > 80%.
$my_type = $mylpi->get_type();

Loading…
Cancel
Save