Skip to content

Commit 2802ee9

Browse files
authored
Fix for issue #46187 (#46196)
This PR fixes the issue of the deprecated warning by not removing the default_field but setting it to hidden thru the form params instead.
1 parent 17bd8a4 commit 2802ee9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

plugins/fields/note/params/note.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<form>
3+
<field
4+
name="default_value"
5+
type="hidden"
6+
filter="unset"
7+
/>
38
<fields name="params" label="COM_FIELDS_FIELD_BASIC_LABEL">
49
<fieldset name="renderoptions">
510
<field

plugins/fields/note/src/Extension/Note.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function prepareForm(PrepareFormEvent $event)
4747
return;
4848
}
4949

50-
$form->removeField('default_value');
5150
$form->removeField('required');
5251
$form->removeField('hint', 'params');
5352
$form->removeField('class', 'params');

0 commit comments

Comments
 (0)