$ds_rm_id) { $reltabname=getTabModuleName($reltabid); $relSharePermission=$_REQUEST[$reltabname.'_accessopt']; addRelatedModuleSharingPermission($shareId,$tabid,$reltabid,$relSharePermission); } } elseif($mode == 'edit') { $shareId=$_REQUEST['shareId']; updateSharingRule($shareId,$tabid,$share_entity_type,$to_entity_type,$share_entity_id,$to_entity_id,$module_sharing_access); //Adding the Related ModulePermission Sharing foreach($relatedShareModuleArr as $reltabid=>$ds_rm_id) { $reltabname=getTabModuleName($reltabid); $relSharePermission=$_REQUEST[$reltabname.'_accessopt']; updateRelatedModuleSharingPermission($shareId,$tabid,$reltabid,$relSharePermission); } } $loc = "Location: index.php?action=OrgSharingDetailView&module=Settings&parenttab=Settings"; header($loc); ?>