File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 9
9
use Statamic \Facades \Entry ;
10
10
use Statamic \Facades \GraphQL ;
11
11
use Statamic \Facades \Site ;
12
+ use Statamic \Fields \Value ;
12
13
use Statamic \Fieldtypes \Bard \Augmentor ;
13
14
use Statamic \GraphQL \Types \BardSetsType ;
14
15
use Statamic \GraphQL \Types \BardTextType ;
@@ -245,8 +246,13 @@ public function filter()
245
246
246
247
protected function performAugmentation ($ value , $ shallow )
247
248
{
248
- if ($ this ->shouldSaveHtml () && is_string ($ value )) {
249
- return is_null ($ value ) ? $ value : $ this ->resolveStatamicUrls ($ value );
249
+ if ($ this ->shouldSaveHtml ()) {
250
+ if (
251
+ is_string ($ value )
252
+ || ($ value instanceof Value && is_string ($ value ->value ())) // This part is not under test. See https://github.com/statamic/cms/pull/10104
253
+ ) {
254
+ return is_null ($ value ) ? $ value : $ this ->resolveStatamicUrls ($ value );
255
+ }
250
256
}
251
257
252
258
if ($ this ->isLegacyData ($ value )) {
You can’t perform that action at this time.
0 commit comments