Bug #15703
closed
Cannot update organization using --media-ids flag
Added by Ondřej Pražák over 8 years ago.
Updated over 6 years ago.
Description
hammer organization update --id 7 --media-ids 1,2,3,4,5,6,7,8,9
Could not update the organization:
Can't mass-assign protected attributes for Organization: media_ids
Hammer should be sending the "medium_ids" (singular resource type) attribute to the API, same for all taxonomy associations.
Update: the mass-assignment error seems to be gone now, but the update silently fails. If I try to add media in update/create, they are not assigned.
- Project changed from Hammer CLI to Foreman
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Pražák
- Pull request https://github.com/theforeman/foreman/pull/3873 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Category set to API
- Translation missing: en.field_release set to 190
- Bugzilla link set to 1234287
Also available in: Atom
PDF