edit override detects template namespace for convenience. (until asset definitions are as well-defined as wobjects').

This commit is contained in:
Matthew Wilson 2005-12-03 14:53:33 +00:00
parent e2f047e37c
commit d9e1058a73

View file

@ -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('<pre>'.Dumper(\%params).'</pre>');
$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",