Skip to content

Commit

Permalink
Added max file size unit to storage dataText1 column
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Nov 2, 2023
1 parent 1cebbfc commit dabd3c5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public function toStorageFieldDefinition(FieldDefinition $fieldDef, StorageField
? $validators['FileSizeValidator']['maxFileSize'] * 1024
: 0;
$storageDef->dataInt2 = (int)($validators['AlternativeTextValidator']['required'] ?? 0);
$storageDef->dataText1 = 'KB';
}

public function toFieldDefinition(StorageFieldDefinition $storageDef, FieldDefinition $fieldDef): void
Expand Down

0 comments on commit dabd3c5

Please sign in to comment.