Release 2.0.25 (#4066)

* added support for hourly rate column in detail table
* allow to register icon in extension
* allow to show QR code secret
* new translations
* bump theme and packages
* fix validation for invoice-document-filenames with uppercase character
* max upload size 1MB
* fix last month in daterange-picker in certain situations, more years in quick-select
* remove unused package-versions-deprecated
* link preferences from contract warning message
* added page_setup page layout
* prevent DROP TABLE in addSQL() and replace drop table with schema call
* added azuyalabs/yasumi
This commit is contained in:
Kevin Papst
2023-06-06 23:05:20 +02:00
committed by GitHub
parent 2ba9cff281
commit 0663995d06
34 changed files with 629 additions and 467 deletions

View File

@@ -65,6 +65,7 @@ final class InvoiceDocumentUploadForm extends AbstractType
new File([
'mimeTypes' => $mimetypes,
'mimeTypesMessage' => 'This file type is not allowed',
'maxSize' => '1024k',
]),
new Callback([$this, 'validateDocument'])
],
@@ -117,7 +118,7 @@ final class InvoiceDocumentUploadForm extends AbstractType
$safeFilename = transliterator_transliterate(self::FILENAME_RULE, $nameWithoutExtension);
if ($safeFilename !== $nameWithoutExtension) {
if ($safeFilename === false || strtolower($safeFilename) !== strtolower($nameWithoutExtension)) {
$context->buildViolation('This invoice document cannot be used, filename may only contain the following ascii character: %character%')
->setParameters(['%character%' => 'A-Z a-z 0-9 _ -'])
->setTranslationDomain('validators')