[#5317] dblookup field extension
Summary dblookup field extension
Queue Horde Framework Packages
Queue Version HEAD
Type Enhancement
State Accepted
Priority 1. Low
Requester duck@obala.net
Created 2007-04-30 (4966 days ago)
Updated 2008-04-01 (4629 days ago)
Patch Yes

Duck <duck@obala.net> 2007-04-30 14:20:20
Be more flexible in the dblookup field. Now we retrieve only the first 
column, with this patch if the second column is returned by the query, 
it would be used as option name.

Jan Schneider <jan@horde.org> 2007-05-02 12:06:23
This breaks the old behavior. getAll() returns a two dimensional 
array, even if you query only a single column. getCol() returns a 
simple array. Beside that, the error check is wrong because it 
evaluates to true if $results is a PEAR_Error.

Chuck Hagenbuch <chuck@horde.org> 2007-05-12 20:50:30
Marking as rejected for now. Might be superceded by new Horde_Form 
with helpers, might not be.

pp@dia.uva.nl 2008-03-31 19:58:36
Hey, here's another implementation of the suggested improvement of the 
dblookup form type so it can properly handle foreign keys (not just in 
cases where the key equals the value).