diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-05-06 14:40:14 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-06-04 07:57:20 +0000 |
| commit | bddac4b602e1c8884c740004fa77f511a3a169e9 (patch) | |
| tree | 6875a92b075edf685a2aaf7a1c535bd1e8fda0b4 /addons/web/static/src/js/boot.js | |
| parent | ed924e956d1e7c617291430c44415a2d273cb346 (diff) | |
[FIX] base: allow assets names to start by another assets name
Before this commit, if an assets was named 'assets_hello_world' and
another one was named 'assets_hello' and that the first one was included
in the DOM before the second one, trying to load the first one would
result in a 404.
Indeed, this is what would have happened:
1) Render the `t-call-assets="assets_hello_world"` directive ->
compute the assets bundle then return a script with an url reaching
that bundle. Do this after having deleted the previous bundle
computation if any.
2) Render the `t-call-assets="assets_hello"` directive ->
compute the assets bundle then return a script with an url reaching
that bundle. Do this after having deleted the previous bundle
computation if any.
The problem is about "deleting the previous bundle computation" which
was done... by deleting all attachments starting by the bundle name.
This commit solves that by deleting the exact matches.
Part of https://github.com/odoo/odoo/pull/32181
task-1961045
Diffstat (limited to 'addons/web/static/src/js/boot.js')
0 files changed, 0 insertions, 0 deletions
