From 422ff8094a1215ef595b198a810b0152ada0d6a3 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 11 Sep 2018 16:51:23 -0400 Subject: [PATCH] Fix for bug #9 --- exec/parse_excel_echecklist.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/exec/parse_excel_echecklist.php b/exec/parse_excel_echecklist.php index fe04da3..1a978c3 100644 --- a/exec/parse_excel_echecklist.php +++ b/exec/parse_excel_echecklist.php @@ -249,10 +249,11 @@ foreach ($objSS->getWorksheetIterator() as $wksht) { // increment the column indexes for notes, check contents, and missing PDI if (is_array($tgts) && count($tgts) > 1) { - $idx['overall'] += count($tgts); - $idx['consistent'] += count($tgts); - $idx['notes'] += count($tgts); - $idx['check_contents'] += count($tgts); + $increase = count($tgts) - 1; + $idx['overall'] += $increase; + $idx['consistent'] += $increase; + $idx['notes'] += $increase; + $idx['check_contents'] += $increase; } elseif (empty($tgts)) { $log->warning("Failed to identify targets in worksheet {$wksht->getTitle()}");