limit amount of items in calendar drag and drop boxes (#2291)

This commit is contained in:
Kevin Papst
2021-07-11 15:03:18 +02:00
committed by GitHub
parent 2583fdf20e
commit a1f90ffaba
13 changed files with 178 additions and 82 deletions

View File

@@ -391,6 +391,19 @@ class Configuration implements ConfigurationInterface
->end()
->end()
->booleanNode('weekends')->defaultTrue()->end()
->integerNode('dragdrop_amount')
->defaultValue(10)
->validate()
->ifTrue(static function ($v) {
if ($v === null || $v < 0 || $v > 20) {
return true;
}
return false;
})
->thenInvalid('The dragdrop_amount must be between 0 and 20')
->end()
->end()
->end()
;