Problem/Motivation
There are some modules will take an action to change URI while file is uploading to the system, for example file field path module (https://www.drupal.org/project/filefield_paths) will save file in to entity-based token destination.
Proposed resolution
Reload image since its URI could have been changed by other modules while Focal point getCropEntity.
Remaining tasks
- ✅ Create MR
- Test/Review
- Merge
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | focal-point-does-not-save-at-the-first-time-3042259-4.patch | 1.65 KB | henry tran |
Issue fork focal_point-3042259
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 #2
henry tran commentedComment #3
henry tran commentedComment #4
henry tran commentedRestructure code dependence injection.
Comment #5
henry tran commentedFix coding standard.
Comment #7
nuuou commentedI actually had this exact same issue, I believe!
I added a fairly naïve patch here, but it looks like you're going down a better path probably! Also nice to see that someone else is able to replicate this same issue.
https://www.drupal.org/project/focal_point/issues/3008727
Comment #8
nuuou commentedComment #9
majdi commentedI face the same issue, after applying the patch everything works fine
Comment #12
justcaldwellWe use File (Field) Paths and were experiencing this issue. The solution works perfectly. Thank you!
I created MR!61 based on patch 4 (from comment #5).
Comment #13
justcaldwell