#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?