Skip to content
Snippets Groups Projects
Commit 068c747f authored by Vasvi Sharma's avatar Vasvi Sharma
Browse files

Remove patch file

parent 6b0de00a
Branches
No related tags found
1 merge request!250Draft: New Drupal release with locked versions
Pipeline #7233768 failed
diff --git a/filefield_paths.module b/filefield_paths.module
index f496834..73bf41a 100644
--- a/filefield_paths.module
+++ b/filefield_paths.module
@@ -361,7 +361,7 @@ function filefield_paths_entity_update(EntityInterface $entity) {
*/
function filefield_paths_file_presave($file) {
// Store original filename in the database.
- if ($file->origname->isEmpty() && !$file->filename->isEmpty()) {
+ if (isset($file->origname) && $file->origname->isEmpty() && !$file->filename->isEmpty()) {
$file->origname = $file->filename;
}
}
@@ -498,7 +498,7 @@ function filefield_paths_local_tasks_alter(&$local_tasks) {
return;
}
}
- // Provide filesystem route if it not exists.
+ // Provide filesystem route if it not exists.
$local_tasks['system.file_system_settings'] = [
'route_name' => 'system.file_system_settings',
'base_route' => 'system.file_system_settings',
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment