getFilters() not working properly
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.
5 Answers
I can replicate this problem as well.
Just to bubble this up to the top...
Chris, are you still getting the notice after upgrading to 1.8.0?
I hadn't upgraded yet. It works now. Keep up the good work!
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.


