noindex
Forum Replies Created
-
@jimtrue, thank you!
I confirm, in the latest version everything works fine!@sc0ttkclark, hi!
Which field types are affected?
All is about titles in Multiple File Upload
Here’s the latest change that fixes another issue with editing file titles:
Now i have problems with this code in PodsAPI.php
$value_ids = array_unique( array_filter( $value_ids ) ); $values = array_unique( array_filter( $values ) ); // Limit values if ( 0 < $related_limit && !empty( $value_ids ) ) { $value_ids = array_slice( $value_ids, 0, $related_limit ); $values = array_slice( $values, 0, $related_limit ); } // Get current values if ( 'pick' == $type && isset( PodsField_Pick::$related_data[ $fields[ $field ][ 'id' ] ] ) && isset( PodsField_Pick::$related_data[ $fields[ $field ][ 'id' ] ][ 'current_ids' ] ) ) $related_ids = PodsField_Pick::$related_data[ $fields[ $field ][ 'id' ] ][ 'current_ids' ]; else $related_ids = $this->lookup_related_items( $fields[ $field ][ 'id' ], $pod[ 'id' ], $params->id, $fields[ $field ], $pod ); // Get ids to remove $remove_ids = array_diff( $related_ids, $value_ids ); // Delete relationships if ( !empty( $remove_ids ) ) $this->delete_relationships( $params->id, $remove_ids, $pod, $fields[ $field ] ); // Save relationships if ( !empty( $value_ids ) ) $this->save_relationships( $params->id, $value_ids, $pod, $fields[ $field ] ); $field_save_values = $value_ids; if ( 'file' === $type ) { $field_save_values = $values; } // Run save function for field type (where needed) PodsForm::save( $type, $field_save_values, $params->id, $field, array_merge( $fields[ $field ], $fields[ $field ][ 'options' ] ), array_merge( $fields, $object_fields ), $pod, $params ); }@jimtrue, hi!
To solve the problem, I changed the code as described in the bug tracker – https://github.com/pods-framework/pods/commit/3899b8614df8eccc5c540a64614e70de049f3059
Everything was fine, but few days ago i udated plugin to version 2.6.9.Now i have the same problem with these fields.
Only the first field is updated normally, but the rest are not 🙁And now I can’t fix it with editing as last time 🙁
@jimtrue, probably many people prefer do not update plugins while they work 🙂
@jimtrue, ок!
Many thanks!@jimtrue, version 2.6.4 works fine!
An experiment on a backup of a month ago showed that the problem appears immediately after PODS update, without WP or other pugins updates.