[Vtigercrm-developers] Record restriction based on reports_to field.

salim salimcmd at gmail.com
Tue Apr 30 15:40:28 UTC 2013


Adam,
    You saying that make two users to report to each other, like  *UserA *--->
*UserB* , *UserB ---> UserA*. Will it happen in real scenario?
If so this will happen http://pastebin.com/jrFmBnxS. It dropped in a
infinite loop.  :P

How you proposing accumulator in Recursive function.

Thanks
--
Salim


On 30 April 2013 20:14, Adam Heinz <amh at metricwise.net> wrote:

> Ooooooh, reverse that again, it could be cyclic, even though that would
> make so sense, the system does not enforce it.  Definitely need the
> accumulator to avoid an infinite loop.  Set two users to report to each
> other and see if it explodes.  ;)
>
>
> On Tue, Apr 30, 2013 at 10:14 AM, Adam Heinz <amh at metricwise.net> wrote:
>
>> On Tue, Apr 30, 2013 at 10:12 AM, Adam Heinz <amh at metricwise.net> wrote:
>>
>>> You should add some sort of accumulator to getReportingUsers so that you
>>> don't recur for userids you have already checked.
>>>
>>
>> Scratch this comment, we're walking a directed acyclic graph; redundancy
>> is impossible.
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
Muhammed Abdul Salim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130430/e349c8ef/attachment.html>


More information about the vtigercrm-developers mailing list