Jump to content


Click here to lend your support to: Traq and make a donation at pledgie.com !
Photo

Filtering Tickets by "Assigned To" improvement (AVALON)


  • Please log in to reply
No replies to this topic

#1 robbiesmith79

robbiesmith79

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 17 March 2014 - 09:17 PM

This isn't an update for Traq necessarily but when filtering tickets by Assigned To and you don't get the username exactly right, the app dies a horrible death because User::find('username',$value)->id... returns nothing. 

 

So in the public static function find. I gave the $select->row_count() == 0 one last effort on /vendor/avalon/database/model.php line 132:

 

        if ($select->row_count() == 0) {
		 $select = static::db()->select()->from(static::$_name)->where($find, "%" . $value . "%", "like")->limit(1)->exec();
		  
		  if ($select->row_count() == 0) {
		       return false;
		  } 
        }

Now I can search any part of the username. 

 

FWIW,

 




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users