[Bps-public-commit] rt-extension-assets branch, assetsearchformat-example, created. 1.01_1-1-g4d98eb5
Kevin Falcone
falcone at bestpractical.com
Tue Sep 30 12:12:56 EDT 2014
The branch, assetsearchformat-example has been created
at 4d98eb58db0bd8ab193f81798a6828daa0eedcba (commit)
- Log -----------------------------------------------------------------
commit 4d98eb58db0bd8ab193f81798a6828daa0eedcba
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Tue Sep 30 12:01:32 2014 -0400
Switch to an example of the hashref syntax
Even though we only have one Catalog out of the box, this helps admins
who aren't perl programmers understand the format of multiple-catalog
formats.
diff --git a/etc/Assets_Config.pm b/etc/Assets_Config.pm
index 3309d2f..57f1935 100644
--- a/etc/Assets_Config.pm
+++ b/etc/Assets_Config.pm
@@ -119,15 +119,17 @@ id is found therein, falls back to the key ''.
=cut
# loc('Related tickets')
-Set($AssetSearchFormat, q[
- '<a href="__WebHomePath__/Asset/Display.html?id=__id__">__Name__</a>/TITLE:Name',
- Description,
- '__Status__ (__Catalog__)/TITLE:Status',
- Owner,
- HeldBy,
- Contacts,
- '__ActiveTickets__ __InactiveTickets__/TITLE:Related tickets',
-]) unless $AssetSearchFormat;
+Set($AssetSearchFormat, {
+ 'General assets' => q[
+ '<a href="__WebHomePath__/Asset/Display.html?id=__id__">__Name__</a>/TITLE:Name',
+ Description,
+ '__Status__ (__Catalog__)/TITLE:Status',
+ Owner,
+ HeldBy,
+ Contacts,
+ '__ActiveTickets__ __InactiveTickets__/TITLE:Related tickets',
+ ],
+}) unless $AssetSearchFormat;
=item C<$AssetSummaryFormat>
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list