Problem/Motivation
When i enable this module i now have 2 additional actions on the VBO field for the People view:
- Edit user
- Modify field values
The first does nothing as far as i can see. The second (which i have used successfully on nodes) generates this error:
InvalidArgumentException: Field is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 587 of core\lib\Drupal\Core\Entity\ContentEntityBase.php).
[EDIT] - first part of this is fixed in the -dev version of VBO.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork views_bulk_edit-3189117
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
Graber CreditAttribution: Graber as a volunteer commentedDuplicate. It was solved on the VBO side as well (check out the latest dev version).
Comment #3
Graber CreditAttribution: Graber as a volunteer commentedAhh, sorry, please update the issue title and description so it's about the InvalidArgumentException only. The double fields issue is solved.
Comment #4
liquidcms CreditAttribution: liquidcms commentedComment #5
sada1988 CreditAttribution: sada1988 commentedim into the same even with dev version modules, is there any update for this?
Modify field values part still fail with same symptoms.
Comment #6
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedComment #7
gbyte CreditAttribution: gbyte as a volunteer and at gbyte commentedComment #9
gbyte CreditAttribution: gbyte as a volunteer and at gbyte for Abgeordnetenwatch commentedPlease review, thanks!
Comment #10
marcoka CreditAttribution: marcoka commentedIs there a patch because i have this problem too. Can not mass edit user fields.
The latest VBO dev doesnt fix it, but introduces new problems liek "ArgumentCountError: Too few arguments to function Drupal\views_bulk_operations\Service\ViewsBulkOperationsActionManager::__construct(), 4 passed in.."
Comment #11
gbyte CreditAttribution: gbyte as a volunteer and at gbyte for Abgeordnetenwatch commented@marcoka You can get the patch by adding .patch to the merge request or the commit URL, in this case: https://git.drupalcode.org/project/views_bulk_edit/-/merge_requests/6.patch.
Comment #12
marcoka CreditAttribution: marcoka commentedThank you for that patch link and the hint.
Applied it, worked. Then i mass edited 8000 user with a custom int filed and set it to a value of 10. All worked fine.
Comment #13
markdcI was having this same issue with the Commerce product entity. This patch solved the problem. Thanks @gbyte. Happy bulk editing, all.
Comment #14
extect CreditAttribution: extect commentedThis fixes the issue for me as well. Thank you @gbyte.
Comment #15
Lukas von BlarerThe MR solves the issue for me.
Comment #16
lubwn CreditAttribution: lubwn commentedPatch from #11 solved an issue for me! thank you very much. Please commit this to a release updating users or user-related entities is very handy.
Comment #18
Graber CreditAttribution: Graber as a volunteer commentedThank you all, merged.