For what do we need this code:
// Don't allow the 'repeat' attribute to be edited
foreach ($xmlxpath->evaluate('//field[@name="repeat"]') as $field)
{
$field->setAttribute('readonly', '1');
}
In any case, it does not work.
subfield
repeat
After reading the code I expected:
Field for the param repeat
should be readonly
.
Labels |
Added:
?
|
@astridx can you please check next:
1 Create a new custom field of the type subfield
2 See, that you can edit the field repeat
3 Save the field
4 Open to edit again, repeat field should be "readonly"
I found it need for prevent changing type of existing field, to avoid data loss.
If it not work, then it may be related to #27760
Original pr #24711
Thanks for checking.
Then it a valid bug.
Status | New | ⇒ | Confirmed |
This can be closed. It has been fixed in another PR and it's now fixed
can you please reference the pr that solved this.... then i'll be very happy to close this one
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-11-01 12:18:39 |
Closed_By | ⇒ | alikon |
thank you
I think it was made to make "require" option to work (your issue #27736), if it not work then it cause #27736Need to find original PR and author, to be sure.