As I said, the script works, so it's not a problem with attaching a function to a button, which is in a different frame, not the AH one. The AH UI stops working after
Code:
AuctionHouseFrame.SearchBar.SearchBox:SetText(t.name);
Basically, how do you put text into the search text field in the AH window using lua?
Because the line above breaks it to the point that I need to relog to make it work again.