From 5cb75f4797a5585e2454a41732d56626c3046720 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 21 May 2024 13:59:11 +0200 Subject: [PATCH] cleaning --- includes/forms/field-OrderDocumentsList.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/forms/field-OrderDocumentsList.php b/includes/forms/field-OrderDocumentsList.php index 22e54cd..50700c7 100644 --- a/includes/forms/field-OrderDocumentsList.php +++ b/includes/forms/field-OrderDocumentsList.php @@ -5,6 +5,8 @@ if (class_exists('GF_Field')) { { public $type = 'order_documents_list'; + + private function buildChoicesArray() { @@ -42,7 +44,7 @@ if (class_exists('GF_Field')) { 'ID' => $id, ]; } - + $this->choices = $choices; return $choices; } @@ -96,7 +98,7 @@ if (class_exists('GF_Field')) { private function translateValueArray($value) { - $this->buildChoices(); + $this->buildChoicesArray(); $table_value = []; $counter = 0;