Commit 1ac1b191 authored by TravisCarden's avatar TravisCarden

By TravisCarden: Fixed incorrect "items changed" message count.

parent 2b8c3e8b
......@@ -253,7 +253,7 @@ class ChecklistapiChecklist {
// saved progress.
continue;
}
$old_item = (!empty($this->savedProgress[$item_key])) ? $this->savedProgress[$item_key] : 0;
$old_item = (!empty($this->savedProgress['#items'][$item_key])) ? $this->savedProgress['#items'][$item_key] : 0;
if ($item == 1) {
// Item is checked.
$progress['#completed_items']++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment