Skip to content

Commit

Permalink
Fix preset name size (back-end)
Browse files Browse the repository at this point in the history
  • Loading branch information
CherifAmine committed May 5, 2023
1 parent f8813c3 commit b08b1be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bbbeasy-backend/app/src/Actions/Presets/Add.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function save($f3, $params): void
$dataChecker = new DataChecker();

$dataChecker->verify($form['name'], Validator::notEmpty()->setName('name'));
$dataChecker->verify($form['name'], Validator::length(1, 64)->setName('name'));
$dataChecker->verify($userId, Validator::notEmpty()->setName('user_id'));

$errorMessage = 'Preset could not be added';
Expand Down

0 comments on commit b08b1be

Please sign in to comment.