From 145865e7e14aa8c65bc0e1619a4673f127c52e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Ruz=CC=8Cevic=CC=81?= Date: Mon, 28 Oct 2024 13:25:55 +0100 Subject: [PATCH] update release --- CHANGELOG.md | 7 +++++++ eightshift-forms.php | 2 +- src/Integrations/Talentlyft/Talentlyft.php | 6 ++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32635175f..8904fa45e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/). +## [5.1.6] + +### Fixed + +- TalentLyft integration not displaying label for radios and checkboxes. + ## [5.1.5] ### Fixed @@ -710,6 +716,7 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a - Initial production release. +[5.1.6]: https://github.com/infinum/eightshift-forms/compare/5.1.5...5.1.6 [5.1.5]: https://github.com/infinum/eightshift-forms/compare/5.1.4...5.1.5 [5.1.4]: https://github.com/infinum/eightshift-forms/compare/5.1.3...5.1.4 [5.1.3]: https://github.com/infinum/eightshift-forms/compare/5.1.2...5.1.3 diff --git a/eightshift-forms.php b/eightshift-forms.php index b89cb75fd..f30c9045d 100644 --- a/eightshift-forms.php +++ b/eightshift-forms.php @@ -6,7 +6,7 @@ * Description: Eightshift Forms is a complete form builder plugin that utilizes modern Block editor features with multiple third-party integrations, bringing your project to a new level. * Author: WordPress team @Infinum * Author URI: https://eightshift.com/ - * Version: 5.1.5 + * Version: 5.1.6 * Text Domain: eightshift-forms * * @package EightshiftForms diff --git a/src/Integrations/Talentlyft/Talentlyft.php b/src/Integrations/Talentlyft/Talentlyft.php index 0bb5bffaf..3d4252ad9 100644 --- a/src/Integrations/Talentlyft/Talentlyft.php +++ b/src/Integrations/Talentlyft/Talentlyft.php @@ -109,6 +109,8 @@ private function getFields(array $data, string $formId): array $output = []; + dump($data['fields']); + foreach ($data['fields'] as $item) { if (!$item) { continue; @@ -302,8 +304,8 @@ function ($selectOption) { case 'checkbox': $output[] = [ 'component' => 'checkboxes', - 'checkboxesFieldHideLabel' => true, 'checkboxesName' => $name, + 'checkboxesFieldLabel' => $label, 'checkboxesIsRequired' => $required, 'checkboxesTypeCustom' => $internalType, 'checkboxesContent' => \array_map( @@ -330,8 +332,8 @@ function ($checkbox) use ($tracking) { case 'yesNo': $output[] = [ 'component' => 'radios', - 'radiosFieldHideLabel' => true, 'radiosName' => $name, + 'radiosFieldLabel' => $label, 'radiosIsRequired' => $required, 'radiosTypeCustom' => $internalType, 'radiosContent' => \array_map(