From 3555e858d601c65483864c1e2ec911948c56e6ff Mon Sep 17 00:00:00 2001 From: Ben Keen Date: Sun, 30 Jun 2019 12:22:51 -0700 Subject: [PATCH] closes #456 --- resources/classes/DataGenerator.class.php | 5 +++-- resources/templates/generate.tab1.tpl | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/resources/classes/DataGenerator.class.php b/resources/classes/DataGenerator.class.php index 15a4f77ae..f8491cad5 100644 --- a/resources/classes/DataGenerator.class.php +++ b/resources/classes/DataGenerator.class.php @@ -20,7 +20,7 @@ class DataGenerator { private $isLastBatch; private $currentBatchFirstRow; private $currentBatchLastRow; - + // compression flag - set as per user choice private $isCompressionRequired = false; @@ -162,6 +162,7 @@ private function applyRowsGeneratedLimit() { $this->numResults = $maxDemoModeRows; } } + // always apply the max generated rows limitation. Technically this value could be lower than // the $maxDemoModeRows value above, but it's extremely unlikely & an acceptable restriction $maxGeneratedRows = Core::getMaxGeneratedRows(); @@ -438,7 +439,7 @@ public function getCurrentBatchFirstRow() { public function getCurrentBatchLastRow() { return $this->currentBatchLastRow; } - + public function isPromptDownloadZipped(){ return $this->isCompressionRequired; } diff --git a/resources/templates/generate.tab1.tpl b/resources/templates/generate.tab1.tpl index d49b628af..771902885 100644 --- a/resources/templates/generate.tab1.tpl +++ b/resources/templates/generate.tab1.tpl @@ -15,7 +15,7 @@
-
+

{$L.country_specific_data|upper} @@ -81,10 +81,10 @@

-
+
- {$L.generate} {$L.rows} + {$L.generate} {$L.rows}