snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Select notes column from find

Open mtucker6784 opened this issue 11 years ago • 3 comments

Hey @snipe , I know you're swamped in stuff, sure appreciate you tagging in on Snipe-IT...It sure is an awesome tool!

Question:

Can you point me in the right direction to modify the "search" feature so that I can also query from assets' notes column?

I'm searching in : /vendor/laravel/framework/tests/Database/DatabaseQueryBuilderTest.php , which is where (I think) I need to be, but I'm not sure which function is used for the search feature. Does this make sense?

Thanks! -Mike

mtucker6784 avatar Jul 13 '15 18:07 mtucker6784

Hi @mtucker6784 - thanks for the kind words!

To edit what fields are displayed or searchable in the list view, you'll need to edit app/controllers/AssetsController.php. The getDatatables method there is what you're looking for.

snipe avatar Jul 13 '15 20:07 snipe

Damn. Gotcha. Thanks much! I'll go from here :P

mtucker6784 avatar Jul 13 '15 20:07 mtucker6784

tumblr_nr4wo0unyd1s373hwo1_400

snipe avatar Jul 13 '15 21:07 snipe