- Issue created by @Sander Wemagine
- Status changed to Needs review
5 months ago 12:39pm 11 July 2024 - Status changed to Needs work
5 months ago 10:48am 31 July 2024 - šµšPhilippines cleavinjosh
Hi @Sander Wemagine,
Thank you for your patch. I tried to apply it and I encountered an error.
ā masquerade git:(8.x-2.0-rc4) curl https://www.drupal.org/files/issues/2024-07-11/masquerade-css-class.patch | git apply -v % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 795 100 795 0 0 3603 0 --:--:-- --:--:-- --:--:-- 3613 Checking patch modules/contrib/masquerade/src/MasqueradeCallbacks.php... error: modules/contrib/masquerade/src/MasqueradeCallbacks.php: No such file or directory ā masquerade git:(8.x-2.0-rc4)
I tried using the apply -v but I still need to specify the path for the file in order to apply the patch.
ā masquerade git:(8.x-2.0-rc4) curl https://www.drupal.org/files/issues/2024-07-11/masquerade-css-class.patch | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 795 100 795 0 0 3899 0 --:--:-- --:--:-- --:--:-- 3916 can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- web/modules/contrib/masquerade/src/MasqueradeCallbacks.php 2024-07-11 14:34:28 |+++ web/modules/contrib/masquerade/src/MasqueradeCallbacks.php 2024-07-11 14:34:51 -------------------------- File to patch: web/modules/contrib/masquerade/src/MasqueradeCallbacks.php web/modules/contrib/masquerade/src/MasqueradeCallbacks.php: No such file or directory Skip this patch? [y] n File to patch: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/masquerade/src/MasqueradeCallbacks.php patching file /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/masquerade/src/MasqueradeCallbacks.php ā masquerade git:(8.x-2.0-rc4) ā
I then proceed with my testing. However, I did not find the class added.
These are the steps I followed.
- Installed the module
- Go to People
- Scroll down to the users list
- Under the Operations column, click on the dropdown menu
- Open dev tool
- Inspect the link
- Applied the patch
- Restart
- Inspected the link again
- Uninstalled then installed the modules (I did not delete the files)
- Performed Step 2 - 6 again
Please let me know if I did any wrong. If so, may I request instructions on how to test the issue?
Attaching some screenshots for reference.
Please check and advise. Especially on the issue of applying the patch.
Thank you.