Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
external_entities
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
external_entities
Merge requests
!73
Resolve
#3509687
"Argument 1 mimetype"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3509687
"Argument 1 mimetype"
issue/external_entities-3509687:3509687-argument-1-mimetype
into
3.0.x
Overview
0
Commits
3
Pipelines
2
Changes
1
Merged
Valentin Guignon
requested to merge
issue/external_entities-3509687:3509687-argument-1-mimetype
into
3.0.x
1 month ago
Overview
0
Commits
3
Pipelines
2
Changes
1
Expand
Closes
#3509687
0
0
Merge request reports
Compare
3.0.x
3.0.x (base)
and
latest version
latest version
43e28041
3 commits,
1 month ago
1 file
+
1
−
3
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
modules/xntt_file_field/xntt_file_field.module
+
1
−
3
Options
@@ -129,10 +129,8 @@ function xntt_file_field_entity_preload(array $ids, string $entity_type_id) {
@@ -129,10 +129,8 @@ function xntt_file_field_entity_preload(array $ids, string $entity_type_id) {
'filename'
=>
$filename
,
'filename'
=>
$filename
,
];
];
ExternalFile
::
preCreate
(
$storage
,
$file_data
);
ExternalFile
::
preCreate
(
$storage
,
$file_data
);
$entities
[
$id
]
=
ExternalFile
::
create
();
$entities
[
$id
]
=
ExternalFile
::
create
(
$file_data
);
$entities
[
$id
]
->
set
(
'fid'
,
$id
);
$entities
[
$id
]
->
set
(
'fid'
,
$id
);
$entities
[
$id
]
->
setFileUri
(
$file_data
[
'uri'
]);
$entities
[
$id
]
->
setFilename
(
$file_data
[
'filename'
]);
$entities
[
$id
]
->
setPermanent
();
$entities
[
$id
]
->
setPermanent
();
}
}
}
}
Loading