Skip to content

Commit 8046bfa

Browse files
committed
Fix non-unique input name for a non-cloneable file in a cloneable group
1 parent 3c97d10 commit 8046bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/fields/file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public static function normalize( $field ) {
358358
);
359359

360360
$field['multiple'] = true;
361-
$field['input_name'] = "_file_{$field['id']}";
361+
$field['input_name'] = '_file_' . uniqid();
362362
$field['index_name'] = "_index_{$field['id']}";
363363

364364
return $field;

0 commit comments

Comments
 (0)