Support from Acquia helps fund testing for Drupal Acquia logo

Comments

paolomainardi’s picture

In the attachment the correct one, to get rid of % escaping problems.

Berdir’s picture

Status: Active » Needs review

Remember to set issues to needs review when posting patches.

Status: Needs review » Needs work

The last submitted patch, privatemsg_realname_fulltext_search.patch, failed testing.

Berdir’s picture

Category: bug » feature

Also, 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.

paolomainardi’s picture

Berdir,

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.

paolomainardi’s picture

Status: Needs work » Needs review
FileSize
1.26 KB

Patch in the attachment.

paolomainardi’s picture

The uninstall function implemented.

paolomainardi’s picture

In the attachment the final one, to be used in alternative of #6.

Berdir’s picture

Status: Needs review » Needs work

Please 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.

paolomainardi’s picture

Attached 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.

paolomainardi’s picture

Status: Needs work » Needs review
FileSize
2.13 KB

Changed in needs review.

paolomainardi’s picture

Up

paolomainardi’s picture

Sorry, up.

Patrizio’s picture

My solution extend this feature to all type of autocomplete in privatemsg (username, realname, role)

Status: Needs review » Needs work

The last submitted patch, privatemsgAutocompleteContains.patch, failed testing.

Berdir’s picture

===================================================================
--- privatemsg.admin.inc	(revision 3723)

--- privatemsg.admin.inc	(revision 3723)
+++ privatemsg.admin.inc	(working copy)

You need to create the patch with -p1 to have it accepted by the testbot. The easiest way to do that is using git.

+++ privatemsg_roles/privatemsg_roles.module	(working copy)
@@ -177,7 +177,12 @@
+  else {
+    $fragments['query_args']['where'][] = '%%' . $search .'%%';

Trailing spaces.

oadaeh’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)

This 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.