From d9e1058a738c119a4d69ac3d343e03221c091a88 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Sat, 3 Dec 2005 14:53:33 +0000 Subject: [PATCH] edit override detects template namespace for convenience. (until asset definitions are as well-defined as wobjects'). --- lib/WebGUI/Asset/Shortcut.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Asset/Shortcut.pm b/lib/WebGUI/Asset/Shortcut.pm index c40d7dbff..9f52e8dcf 100644 --- a/lib/WebGUI/Asset/Shortcut.pm +++ b/lib/WebGUI/Asset/Shortcut.pm @@ -765,8 +765,9 @@ sub www_editOverride { } $params{value} = $overrides{overrides}{$fieldName}{origValue}; $params{name} = $fieldName; - $params{label} = $params{label} || "Edit Field Using the Generated Form Type"; -# use Data::Dumper;WebGUI::ErrorHandler::warn('
'.Dumper(\%params).'
'); + $params{label} = $params{label} || "Edit Field Directly"; + $params{hoverhelp} = $params{hoverhelp} || "Use this field to edit the override using the native form handler for this field type."; + if ($fieldName eq 'templateId') {$params{namespace} = $params{namespace} || WebGUI::Asset->newByDynamicClass($overrides{overrides}{templateId}{origValue})->get("namespace");} $f->dynamicField(%params); $f->textarea( -name=>"newOverrideValueText",