Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Search in few fields dont work - error with colon 06 Apr 2013 13:29 #7026

  • Creb
  • Creb's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 1
Hi, I prepare filter and add few field to search (screen)
[img size=21KB]pradzieje.pl/screen.png[/img]

in sandbox this page don work (white page). On localhost I have error:
Parse error: syntax error, unexpected ',' in /administrator/components/com_workpath/models/userpath.php on line 216

Line 216 - first line after comment:
//WHERE - SEARCH : search_name,_login,_email : search on user_id > Name + user_id > Username + user_id > Email
		$search_name,_login,_email = $this->getState('search.name,_login,_email');
		$this->addSearch('name,_login,_email', '_user_id_.name', 'like');
		$this->addSearch('name,_login,_email', '_user_id_.username', 'like');
		$this->addSearch('name,_login,_email', '_user_id_.email', 'like');
		if (($search_name,_login,_email != '') && ($search_name,_login,_email_val = $this->buildSearch('name,_login,_email', $search_name,_login,_email)))
			$this->addWhere($search_name,_login,_email_val);

Please help to fix this error

I greet
Creb

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

Re: Search in few fields dont work - error with colon 06 Apr 2013 14:20 #7027

  • Creb
  • Creb's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 20
  • Thank you received: 1
If I in Instance name of search field write var names, script generate error, If leave field "Instance name" empty - works OK.

Maybe someone helped
I greet
Creb

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

  • Page:
  • 1
Time to create page: 0.070 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started