chakatodd/rt-extension-assettracker — Issue #14: Error "Type not found" when trying to create Templates & Scrips
Author: dentm42
Created: 2011-11-11 17:19:52+00:00
State: open

Problem:

When administering Asset Types, clickiing on "Templates --> Create" or "Scrips --> Create" results in an error: "Type not found".

The problem is in file: html/Callbacks/AssetTracker/Elements/Tabs/Privileged

The following patch should be self-explanatory:

211c211
< $templates->child( create => title => loc('Create'), path => "/AssetTracker/Admin/Types/Template.html?Create=1;Queue=".$id);
---
> $templates->child( create => title => loc('Create'), path => "/AssetTracker/Admin/Types/Template.html?Create=1;AssetType=".$id);
216c216
< $scrips->child( create => title => loc('Create'), path => "/AssetTracker/Admin/Types/Scrip.html?Create=1;Queue=" . $id);
---
> $scrips->child( create => title => loc('Create'), path => "/AssetTracker/Admin/Types/Scrip.html?Create=1;AssetType=" . $id);