Closed (fixed)
Project:
Privatemsg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2009 at 23:58 UTC
Updated:
6 Jul 2009 at 18:40 UTC
Jump to comment: Most recent file
This replaces the participant filter select element with an autocomplete.
This is a first patch, code is still a bit ugly and undocumented but it seems to work fine.
It is a bit complicated with all those conversions going on in privatemsg_filter, we should try to simplify that, if possible. Probably not as part of that patch, though..
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | privatemsg.filter_autocomplete5.patch | 8.21 KB | berdir |
| #11 | privatemsg.filter_autocomplete4.patch | 7.76 KB | litwol |
| #9 | privatemsg.filter_autocomplete3.patch | 8.15 KB | berdir |
| #8 | privatemsg.filter_autocomplete2.patch | 7.99 KB | berdir |
| #3 | privatemsg.filter_autocomplete2.patch | 7.87 KB | berdir |
Comments
Comment #1
naheemsays commentedIs it possible to make this a checkbox option? the textfield by default, but if checked, use the old method of showing the full list? Or would that make things a little too complicated?
I have tested this patch many times and it seems to work well, but leaving at cnr for now as the original post mentions adding more comments.
Comment #2
naheemsays commentedActually, this no longer applies.
Also:
should be
Otherwise sending new messages breaks. (remove the two extra s's)
Comment #3
berdirRerolled, thanks for catching the typos...
Comment #4
naheemsays commentedWorks as expected and the noted problems have been fixed.
EDIT - If there was one niggle, I would have the sql and the sql_alter functions documented. I always need to find what calls them to see what their purpose is... but that can be done separately en masse for all the others too.
Comment #5
litwol commentedas per nbz's "EDIT - ..."
Comment #6
naheemsays commentedI think it would be good to return this to rtbc, and cover the sql functions all in one go. I have created #454832: Document sql query definitions. as an all in one issue queue - but I will leave the status of this as is to let litwol decide.
Comment #7
litwol commentedDespite the fact that i advocate smaller patches, that does not always apply to documentation. It besides many other benefits, it also helps me review patches better/faster when there's an abundancy of documentation.
Comment #8
berdirAdded a apidoc comment to the sql alter function and re-rolled the patch..
Comment #9
berdirWrong patch, re-introduced old bugs...
Let's try again...
Comment #10
naheemsays commentedWorks, documentation added.
Comment #11
litwol commentedMinor change on line 324 in privatemsg_filter
from
to
On first loop $string does not exist and it throws a notice.
Friendly reminder everyone to turn on your php E_NOTICE & $_ALL when developing.
Comment #12
berdirAbove patch missed a space before ? and I think is easier to initialize $string properly.
Comment #13
naheemsays commentedworks as expected (the fix in patch 5 is different to the one proposed in patch 4, but should work as well if not better as a condition is not being evaluated on every roll of a loop).
Comment #14
litwol commentedVoila ;)