getFilters() not working properly

0

I've been lax in my updates, but I'm using this slow time to update some of my sites with Pods to their latest versions.

I just updated a site today from 1.7.6 to 1.7.9 that uses getFilters() on some of the pages, and ended up with a MySQL error.

I dug into the code, and found you changed the syntax for get_dropdown_values in Pod.Class.php.

To correct this, lines 25 and 26 in list_filters.php needs to be replaced with the following: <pre> $params = array( 'table' => $row['pickval'], 'field_name' => $field_name, 'tbl_row_ids' => null, 'unique_vals' => false, 'pick_filter' => null, 'pick_orderby' => null ); $data = $this->get_dropdown_values($params); </pre>

After this, I'm still getting "Notice: Undefined index: $field_name in Pod.class.php on line 406." I've looked at this code, and it's beyond me.

asked Feb 12 '10 at 12:21

chris.pilko

889

add comment
enter at least 15 characters

5 Answers

0

I can replicate this problem as well.

answered Dec 29 '09 at 2:29

magi182

110

add comment
enter at least 15 characters
0

Just to bubble this up to the top...

answered Jan 6 '10 at 11:16

chris.pilko

889

add comment
enter at least 15 characters
0

Chris, are you still getting the notice after upgrading to 1.8.0?

answered Jan 6 '10 at 12:16

logikal16

249

add comment
enter at least 15 characters
0

I hadn't upgraded yet. It works now. Keep up the good work!

answered Jan 7 '10 at 4:11

chris.pilko

889

add comment
enter at least 15 characters
0

getFilters: Drop-Down Filters not working

Under what circumstances will the drop-down filters not show up. I have 1 pod where they do, and two pods where they don't - the code is

"echo $Record->getFilters(null, 'Search')" - without the quotes - and is identical in all three pod pages.

All pods have min of 2 pick value columns.

answered Feb 12 '10 at 12:21

IFCHoldings

21

add comment
enter at least 15 characters