- Issue created by @tadas.rimkus
- @tadasrimkus opened merge request.
- 🇳🇱Netherlands tadas.rimkus
https://www.drupal.org/project/context/issues/3355665 🐛 Uncaught TypeError: $(...).once is not a function RTBC contains a fix to `once` issue.
The other issue is actual block filtering that happens inside admin/structure/context.
This small update to javascript fixes that. - 🇮🇳India dineshkumarbollu
Hi
I Tested the MR!36 in my local site search results are getting. i am attaching screenshots for that.
Thanks
- Status changed to RTBC
about 1 year ago 8:37am 26 October 2023 - 🇺🇸United States liza
hi! is there a new patch system? if am using composer to manage modules:
1. where's the patch for this bug?
2. if we are not use patch or git apply --and it's not encouraged to add the patch to composer.json-- how exactly are we to apply this patch?thanks.
- 🇬🇧United Kingdom rossb89 Bristol
@liza if you go to the merge request link in this node (https://git.drupalcode.org/project/context/-/merge_requests/36)
In the top Right hand side you'll see a blue select list dropdown titled 'Code'.
Click that, and under the 'download' click 'Plain diff' and that will give you a patch file. You should name it something appropriate rather than just 'mr-36.patch'.
You should then add e.g. a patches folder in your project (at the top level, outside the webroot), and in composer.json reference the patch from within there. E.g.
"Search is broken when placing block MR-36 ( https://www.drupal.org/project/context/issues/3374119 🐛 Search is broken when placing block RTBC )": "patches/the-name-of-the-patch-file.patch"
You technically could hotlink directly to the patch URL BUT if the code changes at all within the merge request then next time you ran composer install you'd get any changes that may have been made, which could cause issues with broken code, etc so it's highly recommended to NOT directly link to the patch from the merge request.
- 🇬🇧United Kingdom rossb89 Bristol
Another vote for RTBC.
This patch works great and does indeed solve search not working and the once issue from the other issue.
- 🇺🇸United States amanire
MR!36 works great, thank you!
But this issue is more widespread than the description here and in https://www.drupal.org/project/context/issues/3355665 🐛 Uncaught TypeError: $(...).once is not a function RTBC indicate. It took me a few tries to track this issue down because of the title. I'm revising it and description for clarity to help others in this situation and better expose its severity to the module maintainers.