diff --git a/includes/forms/field-OrderDocumentsList.php b/includes/forms/field-OrderDocumentsList.php index cd64245..e02d044 100644 --- a/includes/forms/field-OrderDocumentsList.php +++ b/includes/forms/field-OrderDocumentsList.php @@ -36,8 +36,8 @@ if (class_exists('GF_Field')) { $choices[] = [ 'title' => get_the_title($current_lang_id), 'text' => get_the_title($current_lang_id), - 'ID_fr' => $post['ID_nl'], - 'ID_nl' => $post['ID_fr'], + 'ID_fr' => $post['ID_fr'], + 'ID_nl' => $post['ID_nl'], ]; } $this->choices = $choices; @@ -100,7 +100,6 @@ if (class_exists('GF_Field')) { $counter = 0; foreach ($this->choices as $document) { - // $isEmpty = empty($value[$counter]) && empty($value[$counter + 1]); // if ($isEmpty) { diff --git a/includes/forms/template-field-order-documents.php b/includes/forms/template-field-order-documents.php index 26be82f..892c895 100644 --- a/includes/forms/template-field-order-documents.php +++ b/includes/forms/template-field-order-documents.php @@ -24,7 +24,6 @@ $documentPost = get_post($current_lang_id); $metadata = wp_get_attachment_metadata($current_lang_id); - ?>