Update
This commit is contained in:
@@ -39,7 +39,6 @@ final class TempFile extends EO_TempFile
|
||||
$chunk->setFile($newFile);
|
||||
}
|
||||
|
||||
$tempFile = null;
|
||||
if ($chunk->isOnlyOne())
|
||||
{
|
||||
// Cloud and local files are processed by CFile::SaveFile.
|
||||
|
||||
@@ -29,7 +29,7 @@ class TempFileAgent
|
||||
$agentName = '\\' . __METHOD__ . '();';
|
||||
$agents = \CAgent::getList(['ID' => 'DESC'], [
|
||||
'MODULE_ID' => 'ui',
|
||||
'NAME' => $agentName,
|
||||
'=NAME' => $agentName,
|
||||
]);
|
||||
|
||||
if ($agent = $agents->fetch())
|
||||
|
||||
@@ -9,6 +9,7 @@ use Bitrix\Main\ORM\Fields;
|
||||
use Bitrix\Main\ORM\Fields\Relations\Reference;
|
||||
use Bitrix\Main\ORM\Query\Join;
|
||||
use Bitrix\Main\Type\DateTime;
|
||||
use Bitrix\Main\UuidGenerator;
|
||||
|
||||
/**
|
||||
* Class TempFileTable
|
||||
@@ -50,13 +51,7 @@ class TempFileTable extends Data\DataManager
|
||||
->configureUnique(true)
|
||||
->configureNullable(false)
|
||||
->configureDefaultValue(static function () {
|
||||
return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
|
||||
mt_rand(0, 0xffff), mt_rand(0, 0xffff),
|
||||
mt_rand(0, 0xffff),
|
||||
mt_rand(0, 0x0fff) | 0x4000,
|
||||
mt_rand(0, 0x3fff) | 0x8000,
|
||||
mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
|
||||
);
|
||||
return UuidGenerator::generateV4();
|
||||
})
|
||||
->configureSize(36)
|
||||
,
|
||||
|
||||
Reference in New Issue
Block a user