Skip to content

Commit

Permalink
Update D3files.php
Browse files Browse the repository at this point in the history
  • Loading branch information
uldisn authored Jan 24, 2025
1 parent 395bf69 commit 96d7466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/D3files.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ private static function saveModelName(string $modelName, int $modelId, int $file
*/
public static function getRecordFilesList(string $modelName, int $modelId): array
{
$filesList = self::fileListForWidget($modelName, $modelId);
$filesList = self::fileListForWidget($modelName, $modelId, true);
foreach ($filesList as $k => $fileRow) {
$fileHandler = new FileHandler(
[
'model_name' => $modelName,
'model_name' => $fileRow['className'],
'model_id' => $fileRow['id'],
'file_name' => $fileRow['file_name'],
]
Expand Down

0 comments on commit 96d7466

Please sign in to comment.