From 89cf4a8fafc11a924cb6a1a40f2b6551cb3abf2e Mon Sep 17 00:00:00 2001 From: Paco Date: Tue, 31 Oct 2023 14:31:47 +0100 Subject: [PATCH] fix: solve publication fallback issue (component_iri) where trans-liter-able data for components with_lang_versions do not try to get lg-nolan value resolution --- core/base/version.inc | 2 +- core/diffusion/class.diffusion_sql.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/base/version.inc b/core/base/version.inc index cb1cd63252..b8ec90a9b1 100644 --- a/core/base/version.inc +++ b/core/base/version.inc @@ -6,5 +6,5 @@ $DEDALO_VERSION .= '.dev'; // .time(); } define('DEDALO_VERSION' , $DEDALO_VERSION); - define('DEDALO_BUILD' , '2023-10-31T10:19:51+01:00'); + define('DEDALO_BUILD' , '2023-10-31T14:32:04+01:00'); define('DEDALO_MAJOR_VERSION', '6'); diff --git a/core/diffusion/class.diffusion_sql.php b/core/diffusion/class.diffusion_sql.php index 2ffc0b3068..d7583b54e3 100644 --- a/core/diffusion/class.diffusion_sql.php +++ b/core/diffusion/class.diffusion_sql.php @@ -1149,6 +1149,12 @@ public static function build_data_field(stdClass $request_options) { $ar_id[] = $current_locator->section_id; } $dato = $ar_id; + }else{ + // fallback trans-liter-able data for component with_lang_versions + if (empty($dato) && $current_component->with_lang_versions===true) { + $current_component->set_lang(DEDALO_DATA_NOLAN); + $dato = $current_component->get_dato(); + } } $ar_field_data['field_value'] = $dato; break;