Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.0
-
Fix Version/s: None
-
Component/s: CiviCRM API, CiviHR
-
Labels:None
Description
In the CiviHR UI for managing roles, one saves the entire list of roles by calling:
CRM.api('HRJobRole','replace',
{ job_id: 123, values: [ ...list of records... ] })
This works correctly as long as "list of records" has at least one item. If it's an empty array, then some component discards or ignores it, and the server replies with an error "Mandatory key(s) missing from params array: values".