diff --git a/lib/WebGUI/Asset/Wobject/Thingy.pm b/lib/WebGUI/Asset/Wobject/Thingy.pm index 88cc87cad..9398d9a32 100644 --- a/lib/WebGUI/Asset/Wobject/Thingy.pm +++ b/lib/WebGUI/Asset/Wobject/Thingy.pm @@ -3260,10 +3260,16 @@ sequenceNumber'); $templateVars{canEditThingData} = 1; $templateVars{searchResult_delete_icon} = $session->icon->delete('func=deleteThingDataConfirm;thingId=' .$thingId.';thingDataId='.$thingDataId,$self->get("url"),$i18n->get('delete thing data warning')); + $templateVars{searchResult_delete_url} = $session->url->append($url, + 'func=deleteThingDataConfirm;thingId='.$thingId.';thingDataId='.$thingDataId); $templateVars{searchResult_edit_icon} = $session->icon->edit('func=editThingData;thingId=' .$thingId.';thingDataId='.$thingDataId,$self->get("url")); + $templateVars{searchResult_edit_url} = $session->url->append($url, + 'func=editThingData;thingId='.$thingId.';thingDataId='.$thingDataId); $templateVars{searchResult_copy_icon} = $session->icon->copy('func=copyThingData;thingId=' .$thingId.';thingDataId='.$thingDataId,$self->get("url")); + $templateVars{searchResult_copy_url} = $session->url->append($url, + 'func=copyThingData;thingId='.$thingId.';thingDataId='.$thingDataId,); } push(@searchResult_loop,\%templateVars); } diff --git a/lib/WebGUI/Help/Asset_Thingy.pm b/lib/WebGUI/Help/Asset_Thingy.pm index d740ed4f5..02fb50d6f 100644 --- a/lib/WebGUI/Help/Asset_Thingy.pm +++ b/lib/WebGUI/Help/Asset_Thingy.pm @@ -221,7 +221,11 @@ our $HELP = { { 'name' => 'searchResult_id' }, { 'name' => 'searchResult_view_url' }, { 'name' => 'searchResult_edit_icon' }, + { 'name' => 'searchResult_edit_url' }, { 'name' => 'searchResult_delete_icon' }, + { 'name' => 'searchResult_delete_url' }, + { 'name' => 'searchResult_copy_icon' }, + { 'name' => 'searchResult_copy_url' }, { 'name' => 'searchResult_field_loop', 'variables' => [ { 'name' => 'field_id' }, diff --git a/lib/WebGUI/i18n/English/Asset_Thingy.pm b/lib/WebGUI/i18n/English/Asset_Thingy.pm index 96cce408a..5a719d493 100644 --- a/lib/WebGUI/i18n/English/Asset_Thingy.pm +++ b/lib/WebGUI/i18n/English/Asset_Thingy.pm @@ -1013,12 +1013,35 @@ search has been done.|, context => q|Description of a tmpl_var for the template help.|, }, + 'searchResult_edit_url' => { + message => q|Url to the edit screen of this search result.|, + lastUpdated => 1104630516, + context => q|Description of a tmpl_var for the template help.|, + }, + 'searchResult_delete_icon' => { message => q|Delete icon to delete this search result.|, lastUpdated => 1104630516, context => q|Description of a tmpl_var for the template help.|, }, + 'searchResult_delete_url' => { + message => q|Url to delete this search result.|, + lastUpdated => 1104630516, + context => q|Description of a tmpl_var for the template help.|, + }, + + 'searchResult_copy_icon' => { + message => q|Copy icon to copy this search result.|, + lastUpdated => 1104630516, + context => q|Description of a tmpl_var for the template help.|, + }, + + 'searchResult_copy_url' => { + message => q|Url to copy this search result.|, + lastUpdated => 1104630516, + }, + 'searchResult_field_loop' => { message => q|A loop containing the fields that are to be displayed for this search result.|, lastUpdated => 1104630516,