Looks like this did not get through, forwarding
From: "Jacques Le Roux" <jacques.le.r...@les7arts.com>
To: <dev@ofbiz.apache.org>
Sent: Sunday, January 22, 2012 1:10 AM
Subject: Re: [jira] [Updated] (OFBIZ-4580) Categories - calculated trails
Kiran,
I think Paul is not monitoring the dev ML.
Your comment should be better in the Jira issue (from where it will be relayed to Paul, creator of the issue).
This anyway is by and large true, to keep history, and ease comments flow
Thanks
Jacques
From: <ki...@objectedge.com>
Hello Paul,
I agree that having such function to generate the trail would be useful.
But this is an expensive operation (not sure if it would hit the cache) as
it recursively lookups the parent category by doing query. A comment
should be added to make it clear to user.
When possible, you should set category_id and pcategory. These are used to
update the trail (see setTrail). setTrail can be called from anywhere as
below:
curCategoryId = parameters.category_id ?: parameters.CATEGORY_ID ?: "";
CategoryWorker.setTrail(request, curCategoryId);
Cheers,
Kiran