Skip to content

Commit f6c5ada

Browse files
authored
gw-update-posts.php: Fixed an issue with snippet not working.
1 parent 6b39b6e commit f6c5ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gravity-forms/gw-update-posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ function acf_get_field_object_by_name( $field_name, $group_name = false ) {
358358
*/
359359
public function return_ids_instead_of_names( $value, $field, $template_name, $populate, $object, $object_type, $objects, $template ) {
360360
// Check if this is for the specific form we want.
361-
if ( $field->formId != $this->_args['form_id'] ) {
361+
if ( rgar( $field, 'formId' ) != $this->_args['form_id'] ) {
362362
return $value;
363363
}
364364

0 commit comments

Comments
 (0)