On Mon, 2 Oct 2006, Tomasz Wlodek wrote:

Hi experts,

I have AT (Asset Tracker) installed on my RT.

On the page

http://atwiki.chaka.net/index.cgi?AssetCloning

I have found instructions on how to add Asset Cloning possibility to AT (Asset Tracker).

I followied those instructions, installed the cloner, restarted Apache - and nothing happens. The instructions says that I should see the "Clone asset" under Asset History menu. I looked at all possible asset related links - and nothing. There is no "Clone asset" link anywhere.

Ok, Here is my followup to that problem:

The instructions posted on http://atwiki.chaka.net/index.cgi?AssetCloning say that in the file

/AssetTracker/Elements/Tabs/Default

I should add:

if (ref $Asset and $Asset->CurrentUserHasRight('CreateAsset')) {
$tabs->{this}->{subtabs}->{'_H'} = { title =>loc("Clone"),
path => "AssetTracker/Asset/Clone.html?id=" . $Asset->Id };
}

I now know that it is the "ref $Asset" condition in the if statement which fails. I can select an asset and still the if (ref $Asset ...) condition fails (ie AT thinks that I did not select an asset).

The cloning routine works. (I checked it by hacking the code).

Any idea why the ref $Asset remains undefined and fails the if statement even if I select an asset?

--
Tomasz Wlodek                        | tel 631-344-7448
Brookhaven Laboratory, Building 510M | fax 631-344-7616
Upton NY 11973-5000                  |
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com

Reply via email to