[Bb-trac] Re: [bbPress] #727: BB_Query has no method to append WHERE - proposal for fix

bbPress bb-trac at lists.bbpress.org
Sun Aug 12 18:37:34 GMT 2007


#727: BB_Query has no method to append WHERE - proposal for fix
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |        Owner:                   
     Type:  defect    |       Status:  closed           
 Priority:  high      |    Milestone:                   
Component:  Back-end  |      Version:  1.0-alpha (trunk)
 Severity:  normal    |   Resolution:  invalid          
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by _ck_):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 I want to sincerely apologise for wasting your all time on this one and
 thank you for the energy you took to explain it to me. BB_Query was so
 complex that I assumed it was working wrong or missing something however
 the more simple answer is that I was the one that made the mistake.

 After re-examining my test code which was seemingly proving to me that the
 where filter was not working, I realised it was returning a null because I
 was trying to use a shortcut ie. $bb_current_user->id when it's supposed
 to be $bb_current_user->data->id

 Your new technique in the trunk is far superior of course because now you
 can hook almost anything that calls the query rather than setting up
 separate functions for each where.

 That will teach me. Sorry, I have much to learn (and need more sleep!)

-- 
Ticket URL: <http://trac.bbpress.org/ticket/727#comment:5>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list