diff --git a/admin/assets/script/_fields.js b/admin/assets/script/_fields.js index 42ca548..2dcd1b7 100644 --- a/admin/assets/script/_fields.js +++ b/admin/assets/script/_fields.js @@ -720,7 +720,7 @@ }; //append meta template - $('a.field-add', target).click(function() { + $('a.row-add', target).click(function() { var index = $('tbody tr', target).length; var row = $(template) .data('index', index) diff --git a/storm/StormPackage.php b/storm/StormPackage.php index 11e6bf1..e45b95d 100644 --- a/storm/StormPackage.php +++ b/storm/StormPackage.php @@ -145,6 +145,7 @@ public function getFieldSchema(array $field): array } if (isset($numbers[1]) && strlen($numbers[1]) > $length[1]) { + $length[0] += strlen($numbers[1]); $length[1] = strlen($numbers[1]); } }