From 97271449ed85c87f3f26e2c552ac5e0d9cd5cbf5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 24 Jul 2021 08:32:46 +1000 Subject: [PATCH] Fixes for min max limits on migration --- app/Traits/GenerateMigrationResources.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index 23b23b109e..08e01bfe66 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -2015,8 +2015,8 @@ trait GenerateMigrationResources } $fees_and_limits = new \stdClass(); - $fees_and_limits->min_limit = $ags->min_limit; - $fees_and_limits->max_limit = $ags->max_limit; + $fees_and_limits->min_limit = $ags->min_limit ?: -1; + $fees_and_limits->max_limit = $ags->max_limit ?: -1; $fees_and_limits->fee_amount = $ags->fee_amount; $fees_and_limits->fee_percent = $ags->fee_percent; $fees_and_limits->fee_tax_name1 = $ags->tax_name1;