Merge branch 'hotfix/0.16.2' of https://github.com/tainacan/tainacan into hotfix/0.16.2
This commit is contained in:
commit
8721ff1238
|
@ -622,9 +622,6 @@ class Item extends Entity {
|
|||
|
||||
$fto = $item_meta->get_metadatum()->get_metadata_type_object();
|
||||
|
||||
$before = str_replace('$type', $fto->get_slug(), $args['before']);
|
||||
$return .= $before;
|
||||
|
||||
if ( $fto->get_core() ) {
|
||||
if ( $args['exclude_core'] ) {
|
||||
continue;
|
||||
|
@ -635,6 +632,9 @@ class Item extends Entity {
|
|||
}
|
||||
}
|
||||
|
||||
$before = str_replace('$type', $fto->get_slug(), $args['before']);
|
||||
$return .= $before;
|
||||
|
||||
if ($item_meta->has_value() || !$args['hide_empty']) {
|
||||
$return .= $args['before_title'] . $item_meta->get_metadatum()->get_name() . $args['after_title'];
|
||||
$return .= $args['before_value'] . $item_meta->get_value_as_html() . $args['after_value'];
|
||||
|
|
|
@ -193,7 +193,6 @@
|
|||
this.selected = metadata.terms;
|
||||
} else {
|
||||
this.selected = [];
|
||||
return false;
|
||||
}
|
||||
|
||||
let onlyLabels = [];
|
||||
|
|
Loading…
Reference in New Issue