Problem/Motivation
The following errors are from drupal 10 upgrade:
- Streamline field widget hooks
- Access checking must be explicitly specified on content entity queries
Steps to reproduce
Any updates attempt causes this.
Proposed resolution
Insert the second line here to comply with Drupal 10 requirement:
$result = $query->condition($entity_info->getKey('bundle'), $field_config->getTargetBundle())
->accessCheck(FALSE)
->condition("{$field_config->getName()}.target_id", '', '<>')
->addTag('DANGEROUS_ACCESS_CHECK_OPT_OUT')
->execute();
Update the hook filefield_paths_field_widget_form_alter to filefield_paths_field_widget_single_element_form_alter
Remaining tasks
Open MR- Test
- Review
- Commit
Issue fork filefield_paths-3360236
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
murilohp commentedThanks @AndersTwo to open this issue, I'm also having issues with the drupal 10 upgrade, I'll update the description with the error that I found and I'll update the MR with the fix. I'm also moving this to NR.
Comment #5
murilohp commentedComment #6
murilohp commentedJust uploading a static patch because we cannot pin the MR in a commit to use
Comment #9
volegerFixed, thanks