From 8cb39e6caa9a81acdb0f14a7bcfac1bc472eae99 Mon Sep 17 00:00:00 2001 From: Matej Minar Date: Thu, 28 Jun 2018 11:26:07 +0200 Subject: [PATCH] changed numeric rule in frontend validation (#15) --- src/Generate/Traits/Columns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generate/Traits/Columns.php b/src/Generate/Traits/Columns.php index 3d73b04..b7bece3 100644 --- a/src/Generate/Traits/Columns.php +++ b/src/Generate/Traits/Columns.php @@ -120,7 +120,7 @@ protected function getVisibleColumns($tableName, $modelVariableName) { case 'integer': $serverStoreRules->push('\'integer\''); $serverUpdateRules->push('\'integer\''); - $frontendRules->push('numeric'); + $frontendRules->push('integer'); break; case 'boolean': $serverStoreRules->push('\'boolean\'');