From f235cede080b6e6841b5254d450abd2fbf8514a1 Mon Sep 17 00:00:00 2001 From: objecttothis <17935339+objecttothis@users.noreply.github.com> Date: Fri, 12 Jul 2019 15:16:21 +0400 Subject: [PATCH] Update date_input.php Corrected this from 1 to 2. 'All' is counted in the array which means that if there is only one stock location, this dropdown will still appear. Setting this to 2 means that the dropdown only shows when there is more than 1 stock location. --- application/views/reports/date_input.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/reports/date_input.php b/application/views/reports/date_input.php index 979375bb7..75219aaa4 100644 --- a/application/views/reports/date_input.php +++ b/application/views/reports/date_input.php @@ -70,7 +70,7 @@ if(isset($error)) ?> 1) + if (!empty($stock_locations) && count($stock_locations) > 2) { ?>