diff --git a/src/readme.txt b/src/readme.txt index 48350fa01..edbaa4ac0 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -4,7 +4,7 @@ Tags: museums, archives, GLAM, collections, repository Requires at least: 5.9 Tested up to: 6.5 Requires PHP: 7.0 -Stable tag: 0.21.1 +Stable tag: 0.21.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html diff --git a/src/tainacan.php b/src/tainacan.php index 37c68284e..98acb262e 100644 --- a/src/tainacan.php +++ b/src/tainacan.php @@ -5,17 +5,17 @@ Plugin URI: https://tainacan.org/ Description: Open source, powerful and flexible repository platform for WordPress. Manage and publish you digital collections as easily as publishing a post to your blog, while having all the tools of a professional repository platform. Author: Tainacan.org Author URI: https://tainacan.org/ -Version: 0.21.1 +Version: 0.21.2 Requires at least: 5.9 Tested up to: 6.5 Requires PHP: 7.0 -Stable tag: 0.21.1 +Stable tag: 0.21.2 Text Domain: tainacan License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html */ -const TAINACAN_VERSION = '0.21.1'; +const TAINACAN_VERSION = '0.21.2'; defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); $TAINACAN_BASE_URL = plugins_url('', __FILE__); diff --git a/src/views/admin/components/edition/item-edition-form.vue b/src/views/admin/components/edition/item-edition-form.vue index 6285a1bae..aea0c9e95 100644 --- a/src/views/admin/components/edition/item-edition-form.vue +++ b/src/views/admin/components/edition/item-edition-form.vue @@ -1230,7 +1230,7 @@ export default { // Sends info to iframe containing item edition form and other use cases parent.postMessage({ type: 'itemEditionMessage', - item: this.$adminOptions.itemEditionMode ? this.item : null + item: this.$adminOptions.itemEditionMode ? JSON.parse(JSON.stringify(this.item)) : null }, tainacan_plugin.admin_url); @@ -1241,7 +1241,7 @@ export default { webkit.messageHandlers && webkit.messageHandlers.cordova_iab ) - webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({ 'type': 'item_updated', 'item': this.item })); + webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({ 'type': 'item_updated', 'item': JSON.parse(JSON.stringify(this.item)) })); }) .catch((errors) => { @@ -1885,7 +1885,7 @@ export default { webkit.messageHandlers && webkit.messageHandlers.cordova_iab ) - webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({ 'type': 'exited_from_navigation', 'item': this.item })); + webkit.messageHandlers.cordova_iab.postMessage(JSON.stringify({ 'type': 'exited_from_navigation', 'item': JSON.parse(JSON.stringify(this.item)) })); }, isSectionHidden(sectionId) { return this.conditionalSections[sectionId] && this.conditionalSections[sectionId].hide; diff --git a/src/views/admin/components/metadata-types/relationship/TainacanRelationship.vue b/src/views/admin/components/metadata-types/relationship/TainacanRelationship.vue index 93b339e80..c3e51f496 100644 --- a/src/views/admin/components/metadata-types/relationship/TainacanRelationship.vue +++ b/src/views/admin/components/metadata-types/relationship/TainacanRelationship.vue @@ -451,8 +451,11 @@ valuesAsHtml: this.getItemMetadataValuesAsHtml(data.item), img: data.item.thumbnail ? data.item.thumbnail : '' }); - + this.onInput(this.selected); + + if ( this.itemMetadatum.metadatum.multiple != 'yes' ) + this.activeTab = 1; } } } diff --git a/src/views/admin/components/modals/bulk-edition-modal.vue b/src/views/admin/components/modals/bulk-edition-modal.vue index 510b24b65..c8ba88f33 100644 --- a/src/views/admin/components/modals/bulk-edition-modal.vue +++ b/src/views/admin/components/modals/bulk-edition-modal.vue @@ -128,7 +128,7 @@ :disabled="bulkEditionProcedures[criterion].isDone" class="tainacan-bulk-edition-field tainacan-bulk-edition-field-last" :placeholder="$i18n.get('instruction_select_a_status2')" - @update:model-update:value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)"> + @update:model-value="($event) => addToBulkEditionProcedures($event, 'newValue', criterion)">