GravityKit / GravityView

The best and easiest way to display Gravity Forms entries on your website.
https://www.gravitykit.com/products/gravityview/
245 stars 62 forks source link

Problem with field list filter (gform_column_input_*) after editing an entry #797

Closed rafaehlers closed 7 years ago

rafaehlers commented 8 years ago

Message shown on multiple entries page:

Warning: Invalid argument supplied for foreach() in /home/webmaster.ptb/html/default/wp-content/plugins/gravityforms/includes/fields/class-gf-field-list.php on line 474
add_filter( 'gform_column_input_10_2_3', 'gv_set_column', 10, 5 );
function gv_set_column( $input_info, $field, $column, $value, $form_id ) {
return array( 'type' => 'select', 'choices' => 'Białystok,Bydgoszcz,Gdańsk,Kielce,Kraków,Lublin,Łódź,Olsztyn,Poznań,Skierniewice,Szczecin,Katowice,Toruń,Warszawa,Wrocław' );
}

Worth noticing:

10 is the form ID, 2 is the field ID, and 3 the third column

Related: https://secure.helpscout.net/conversation/275135032/7378/?folderId=408735

┆Issue is synchronized with this Asana task

rafaehlers commented 7 years ago

I can't reproduce on 1.19.2

zackkatz commented 7 years ago

The issue was an extra colon at the end of a merge tag.