#4527 - Inheritance from parent record not work on code
Hello, I am a Security Suite user at SuiteCRM 7.11.15,
I have observed that the inheritance of the parent record works correctly when you create a record in any module (stock or custom) using the SuiteCRM interface (editview, quickcreateview ...). Occurs as expected, the new record inherits the security groups from the related records at creation time.
However, when doing the same operation through code (in a logic_hook, controller, scheduler task, etc.) the inheritance mechanism of the parent record does not work.
I have seen that in the code of the _SecurityGroups/SecurityGroup.php_ file, in the _inherit_parent()_ function, _$_REQUEST ['relate_to']_ and _$_REQUEST ['relate_id']_ are required, but these variables never exist when a record is created by code.
Is it a bug? o Is it the intended behavior?
Thanks,
Juan Chamizo
3 years ago
3 years ago
3 years ago