Skip to content

Commit

Permalink
Merge pull request #640 from CherifAmine/originbbbeasy/fixMaxSize_pre…
Browse files Browse the repository at this point in the history
…setName_back-end
  • Loading branch information
GhaziTriki authored May 5, 2023
2 parents 023ddf9 + b08b1be commit e1aa3cb
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 e1aa3cb

Please sign in to comment.