Keyword

A live search bug regarding genericItemExtraFields param

  • Nikola
  • Nikola's Avatar Topic Author
  • Offline
  • New Member
More
7 years 3 months ago #163683 by Nikola
I stumbled upon this weird problem, thought I should share it with you. Sorry if bugs are reported elsewhere... or if this is no bug at all, but rather my misinterpretation of what's actually going on :)

I'm using the K2 Tools module as a live searchbox. I also have an override which makes it work just the way I want it to work. However, at one point, there was a need for me to pass the items' Extra Field values to the full search view (not the live output, but the page you go to when you hit ENTER), so OK, no problem - I went to the backend, K2 config, and turned it on (Layout & view options for Search & Date listings => Item extra fields => show). While the results page was now giving the expected output, the livesearch module had stopped working for some reason, so I went back to the configuration page and changed the param back to "hide". Once again, the results page output changed as expected (no extra fields), but the livesearch was dead. The JS simply wouldn't fire the keyup event, and the livesearch result container remained empty.

I restored the old DB and everything started working immediately, so I tried writing the parameter value directly to the DB using PHPMyAdmin (#__extensions -> K2 row -> params - changed "genericItemExtraFields":"0" to "genericItemExtraFields":"1"). Voila - now everything works as expected. Setting back to 0, again, produces expected output. What I must conclude is that setting the param from 0 to 1 in the backend probably affects something else (?!), but for some reason doesn't change it back properly (?!?!).

I tried removing my override as it contains custom SQL queries, but it's definitely not causing the weird behavior.

I have solved this issue, but I've described my solution here, just in case it happens to someone else.

Cheers!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 3 months ago #163692 by Krikor Boghossian
Replied by Krikor Boghossian on topic A live search bug regarding genericItemExtraFields param
Hey there,
Did you notice any JS errors?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Nikola
  • Nikola's Avatar Topic Author
  • Offline
  • New Member
More
7 years 2 months ago #163748 by Nikola
Hey Krikor,
Sorry it took me a while to reply.
There were a few notices, but nothing extraordinary. The site is still under construction, so there are things yet to fix - but no critical errors. I wanted to check once again, however the development server is currently undergoing maintenance and will be available again tomorrow morning.
And yes, one more thing - I'm using K2 2.8.0, but my brother, who's also very much familiar with K2, says he's had similar problems with 2.7.1. a while ago...
I'll try and re-create the problem tomorrow and report here.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 2 months ago #163786 by Krikor Boghossian
Replied by Krikor Boghossian on topic A live search bug regarding genericItemExtraFields param
Let me know, so I can try reproducing the issue.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum