What happened?
Description
Running the resave/entries command to clear a field type of entries does not clear the field.
- Tested running the same command but clearing a plain text field and it worked fine.
- Tested running the same command without the
--site option and the createdBy field is still not cleared.
Steps to reproduce
- In a es_MX site with a site handle of MX create a field called
createdBy with a field type of Entries min and max relations of 1, show the site menu ticked, and manage relations on a per-site basis ticked.
- Create an entry and select an entry inside the
createdBy field and save the entry.
- run
php craft resave/entries --site mx --set createdBy --to=:empty:
Expected behavior
createdBy should be empty.
Actual behavior
createdBy is not empty and still retains the old value.
Craft CMS version
4.5.11
PHP version
8.2.10
Operating system and version
Linux 6.1.0-0.deb11.11-amd64
Database type and version
MariaDB 10.11.5
Image driver and version
Imagick 3.7.0 (ImageMagick 7.1.1-13)
Installed plugins and versions
Anchors 3.3.0
Architect 4.0.1
Field Manager 3.0.8
Google Cloud Storage 2.0.0
Linkit 4.0.4.1
Minify 4.0.0-beta.2
Position Fieldtype 4.0.0
Postmark 3.0.0
Retour 4.1.14
Servd Assets and Helpers 3.5.4
Super Table 3.0.12
What happened?
Description
Running the resave/entries command to clear a field type of entries does not clear the field.
--siteoption and thecreatedByfield is still not cleared.Steps to reproduce
createdBywith a field type ofEntriesmin and max relations of 1, show the site menu ticked, and manage relations on a per-site basis ticked.createdByfield and save the entry.php craft resave/entries --site mx --set createdBy --to=:empty:Expected behavior
createdByshould be empty.Actual behavior
createdByis not empty and still retains the old value.Craft CMS version
4.5.11
PHP version
8.2.10
Operating system and version
Linux 6.1.0-0.deb11.11-amd64
Database type and version
MariaDB 10.11.5
Image driver and version
Imagick 3.7.0 (ImageMagick 7.1.1-13)
Installed plugins and versions
Anchors 3.3.0
Architect 4.0.1
Field Manager 3.0.8
Google Cloud Storage 2.0.0
Linkit 4.0.4.1
Minify 4.0.0-beta.2
Position Fieldtype 4.0.0
Postmark 3.0.0
Retour 4.1.14
Servd Assets and Helpers 3.5.4
Super Table 3.0.12