Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Attached a patch, please review it.
Comment | File | Size | Author |
---|---|---|---|
#14 | privatemsgAutocompleteContains.patch | 3.94 KB | Patrizio |
#11 | aquaknow_realname-1232374-10.patch | 2.13 KB | paolomainardi |
#10 | aquaknow_realname-1232374-10.patch | 2.13 KB | paolomainardi |
#8 | aquaknow_realname-1232374-8.patch | 1.62 KB | paolomainardi |
#7 | aquaknow_realname.install-1232374-16.patch | 508 bytes | paolomainardi |
Comments
Comment #1
paolomainardi CreditAttribution: paolomainardi commentedIn the attachment the correct one, to get rid of % escaping problems.
Comment #2
BerdirRemember to set issues to needs review when posting patches.
Comment #4
BerdirAlso, we need a better title for the settings option (what you have is *way* too technical) and it needs to be variable_del()'d in the uninstall hook.
Regarding the title, maybe something along the lines of "Search anywhere in the real name for autocomplete suggestions" or something along those lines. And a description would be nice too, maybe explaining it in reverse: "If unchecked, only suggestions which start with the search text will be displayed." or something like that.
Comment #5
paolomainardi CreditAttribution: paolomainardi commentedBerdir,
I have forgotten to write that this patch was meant to be reviewed as an idea to be applied if really needed.
Thanks for your feedback, is exactly what i need.
Comment #6
paolomainardi CreditAttribution: paolomainardi commentedPatch in the attachment.
Comment #7
paolomainardi CreditAttribution: paolomainardi commentedThe uninstall function implemented.
Comment #8
paolomainardi CreditAttribution: paolomainardi commentedIn the attachment the final one, to be used in alternative of #6.
Comment #9
BerdirPlease provide a single patch with all changes. Also, you still need to update the #title as explained in #4.
Also, I think what you're doing right now is incorrect, you need to use *either* one of the search replacements, not both. Right now, you're just adding an additional one.
Comment #10
paolomainardi CreditAttribution: paolomainardi commentedAttached a patch with all changes in it, please point me better what do you mean with to use "either" and not both replacement, probably i don't understand at all the private query system.
Thanks.
Comment #11
paolomainardi CreditAttribution: paolomainardi commentedChanged in needs review.
Comment #12
paolomainardi CreditAttribution: paolomainardi commentedUp
Comment #13
paolomainardi CreditAttribution: paolomainardi commentedSorry, up.
Comment #14
Patrizio CreditAttribution: Patrizio commentedMy solution extend this feature to all type of autocomplete in privatemsg (username, realname, role)
Comment #16
BerdirYou need to create the patch with -p1 to have it accepted by the testbot. The easiest way to do that is using git.
Trailing spaces.
Comment #17
oadaeh CreditAttribution: oadaeh as a volunteer commentedThis issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-1.x branch (bug fixes only) or the 7.x-2.x branch.
Thank you.