file_save_data() should replace exported files if they exist. That's more of an edge case, but if one of job items creation failed, editors are not able to save/add new translation jobs.
I will attach the patch that fixes both issues, in the first comment
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 2965856.patch | 1020 bytes | valthebald |
Comments
Comment #2
berdir#2878086: Download link for XLIFF file opens file instead of downloading it. was about fixing the first part?
Comment #3
valthebaldWow, that was quick! :) Thanks @Berdir, indeed I used version 1.3 where it wasn't fixed yet. Here's the patch that fixes the second part
Comment #4
valthebaldComment #5
valthebaldComment #7
berdirMakes sense, was wondering about tests but we currently don't hardcode the filename in the tests, and while we could add a dummy file already there, I think it's not really worth it for that special case.