File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
src/services/appliers/field Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ ) and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
7
+ ## 4.4.5 - 2024-02-09
8
+ ### Fixed
9
+ - Translation of nested link field
10
+
7
11
## 4.4.4 - 2024-01-31
8
12
### Changed
9
13
- Change translations batch size
Original file line number Diff line number Diff line change 2
2
"name" : " lilt/craft-lilt-plugin" ,
3
3
"description" : " The Lilt plugin makes it easy for you to send content to Lilt for translation right from within Craft CMS." ,
4
4
"type" : " craft-plugin" ,
5
- "version" : " 4.4.4 " ,
5
+ "version" : " 4.4.5 " ,
6
6
"keywords" : [
7
7
" craft" ,
8
8
" cms" ,
Original file line number Diff line number Diff line change @@ -32,11 +32,20 @@ public function apply(ApplyContentCommand $command): ApplyContentResult
32
32
$ fieldValue = $ command ->getElement ()->getFieldValue (
33
33
$ field ->handle
34
34
);
35
+
35
36
$ fieldValue ->customText = $ content [$ fieldKey ];
36
37
37
- $ command ->getElement ()->setFieldValue ($ field ->handle , $ fieldValue );
38
+ $ serialized = $ field ->serializeValue ($ fieldValue , $ command ->getElement ());
39
+ $ command ->getElement ()->setFieldValues ([$ field ->handle => $ serialized ]);
40
+
41
+ $ this ->forceSave ($ command );
38
42
39
- return ApplyContentResult::applied ();
43
+ return ApplyContentResult::applied (
44
+ [],
45
+ $ command ->getElement ()->getFieldValue (
46
+ $ command ->getField ()->handle
47
+ )
48
+ );
40
49
}
41
50
42
51
public function support (ApplyContentCommand $ command ): bool
You can’t perform that action at this time.
0 commit comments