From 3bc2d4c5240d1fca5113e482359e96851d1b7379 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Mon, 20 Feb 2023 19:40:12 +0100 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- plugins/flex-objects/CHANGELOG.md | 6 ++++++ .../flex-objects/types/pages/buttons/save.html.twig | 2 +- plugins/flex-objects/blueprints.yaml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/flex-objects/CHANGELOG.md b/plugins/flex-objects/CHANGELOG.md index ce0cd47..3661e3e 100644 --- a/plugins/flex-objects/CHANGELOG.md +++ b/plugins/flex-objects/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.3.4 +## 02/19/2023 + +1. [](#improved) + * Support saving via admin in current language if not translated + # v1.3.3 ## 01/04/2023 diff --git a/plugins/flex-objects/admin/templates/flex-objects/types/pages/buttons/save.html.twig b/plugins/flex-objects/admin/templates/flex-objects/types/pages/buttons/save.html.twig index fd401bc..7d171a5 100644 --- a/plugins/flex-objects/admin/templates/flex-objects/types/pages/buttons/save.html.twig +++ b/plugins/flex-objects/admin/templates/flex-objects/types/pages/buttons/save.html.twig @@ -4,7 +4,7 @@ {{ "PLUGIN_ADMIN.SAVE"|tu }} {% if can_translate %} - {% set untranslated = admin_languages|array_diff(object_languages|merge([language])) %} + {% set untranslated = admin_languages|array_diff(object_languages) %} {% if count(untranslated) %}