Skip to content

Commit

Permalink
fix: solve publication fallback issue (component_iri) where trans-lit…
Browse files Browse the repository at this point in the history
…er-able data for components with_lang_versions do not try to get lg-nolan value resolution
  • Loading branch information
Paco committed Oct 31, 2023
1 parent fc728f8 commit 89cf4a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/base/version.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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');
6 changes: 6 additions & 0 deletions core/diffusion/class.diffusion_sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 89cf4a8

Please sign in to comment.