Post by Russell Mann » Wed Sep 21, 2011 1:02 am

Doing some debugging, I can tell for sure that filter_name is not being set before the autocomplete function is called.

\admin\controller\catalog\attribute.php

~415 or so
if (isset($this->request->get['filter_name'])) {

That's an empty value...

When I use Firebug Console to check what was posted...

filter_name=<whatever you typed in>

The HTTP Get is taking place, but the $this->request->get variable isn't getting filled up.

Newbie

Posts

Joined
Tue Aug 23, 2011 1:16 am

Post by Russell Mann » Wed Sep 21, 2011 1:08 am

This variable does fill though:

$this->request->post['filter_name']

So, if you go into

\admin\controller\catalog\attribute.php

And change:
$this->request->get['filter_name']
to
$this->request->post['filter_name']

both times in the autocomplete() function, it will work.

Newbie

Posts

Joined
Tue Aug 23, 2011 1:16 am

Post by Russell Mann » Wed Sep 21, 2011 1:43 am

OK - more details. Found this bug in a couple areas of code, here is a solid fix:

Code: Select all

		if (isset($this->request->post['filter_name'])) {
			$filter_name = $this->request->post['filter_name'];
		} elseif(isset($this->request->get['filter_name'])) {
			$filter_name = $this->request->get['filter_name'];
		} else {
			$filter_name = '';
		}

		if (isset($filter_name)) {
			$this->load->model('catalog/product');
			
			$data = array(
				'filter_name' => $filter_name,

Newbie

Posts

Joined
Tue Aug 23, 2011 1:16 am

Post by chickc » Wed Sep 21, 2011 2:17 am

Russell Mann wrote:OK - more details. Found this bug in a couple areas of code, here is a solid fix:
Nope, didnt work.

Newbie

Posts

Joined
Fri Jun 17, 2011 5:21 am

Post by OCyvon2 » Wed Sep 21, 2011 2:21 am

chickc wrote: Did you reinstall EVERYTHING or is there a portion I can reinstall? man, it took me a long time to get all my categories in............................Cant someone fix this?
only empty db and reinstall the "install" folder. That is what I did.

OpenCartstore
Gebruikersgids (admin handleiding)


User avatar
Active Member

Posts

Joined
Sun Jan 31, 2010 8:00 pm
Location - Zaandam, The Netherlands

Post by asdrubal » Tue Nov 08, 2011 10:42 pm

Well, this is a "Newbie Error":

happened to me too

Solution:
Just add a Attribute on:
catalog/attribute

after, in Product page > tab: Attribute

Start to type: the attribute that you add
and you will see in float box it appear,
select and edite in text area

if you don't add a attribute before it don't will fix O0

Thanks all

Newbie

Posts

Joined
Tue Nov 08, 2011 12:55 am
Who is online

Users browsing this forum: No registered users and 12 guests