diff options
| author | Romain Derie <rde@odoo.com> | 2018-11-19 17:09:40 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-11-23 14:58:48 +0000 |
| commit | 55073e3baa97fa1285695233f30044bd7c698858 (patch) | |
| tree | 825e9a30b7d27bc8bfb5af079f6f72eb16722b5e /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 8b1a05d9e09dca317ca38422d75f459a7e1784aa (diff) | |
[FIX] web_unsplash: add unsplash searched terms in attachement name/url
Before this commit:
An unsplash image would be saved as an attachement with:
- A name like 'x54ze78z.JPEG'
- An url like '/unsplash/x54ze78z.JPEG'
- A filename like 'x54ze78z.JPGED'
We would not store the searched terms in the name/url.
Then, we would not be able to search on local attachement in the media dialog
to retrieve the images based on what we searched.
Now:
We store the searched terms in the name/url so it can be used later in the
media dialog search:
- Name like 'big_lion.jpg' (duplicates may be possible)
- Url like '/unsplash/x54ze78z/big_lion.jpg'
- Filename like 'unsplash_x54ze78z_big_lion.jpg'
Task-1911345
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
