Issue with select all and custom bulk action


I’ve done some research on this topic but haven’t been able to find a definitive solution. I have a custom bulk action in the Contacts list view. I am able to pass ids of records selected individually with $_REQUEST however if “select all records” checkbox is used. They are not passed. As I understand it JavaScript doesn’t send the ids but instead sends a “select_entire_list” parameter. How can I pass the ids of records when the “select all records” check box is used?


This is an old issue, starting from SugarCRM days, which I’ve seen asked many times but never satisfactorily answered…

It shouldn’t be too hard for a good PHP/Javascript developer but I don’t think anybody competent ever looked at this with sufficient interest, unfortunately.