summaryrefslogtreecommitdiff
path: root/httemplate/edit/elements/edit.html
diff options
context:
space:
mode:
authorivan <ivan>2009-01-21 02:02:09 +0000
committerivan <ivan>2009-01-21 02:02:09 +0000
commit455556cc709f205cb63d42cfe941bb874f36c2f5 (patch)
tree7e6f8e522912efed9ba2e876dcdd6d9bd3111a4f /httemplate/edit/elements/edit.html
parente26229306dd63c4989352f082425267bec217100 (diff)
fix (hopefully last of the) customize package bogosity in 1.9, RT#4662
Diffstat (limited to 'httemplate/edit/elements/edit.html')
-rw-r--r--httemplate/edit/elements/edit.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html
index 6c70d66e6..617855888 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -36,7 +36,7 @@ Example:
#fixed - display fixed value from object or here
#fixed-country
#fixed-state
- 'value' => 'Y', #for checkbox, title, fixed, fixedhidden
+ 'value' => 'Y', #for checkbox, title, fixed, hidden
'disabled' => 0,
'onchange' => 'javascript_function',
@@ -107,7 +107,10 @@ Example:
'new_object_callback'
#run when adding
- 'new_callback' => sub { my( $cgi, $object, $fields_listref ) = @_; },
+ 'new_callback' => sub { my( $cgi, $object, $fields_listref, $optref ) = @_; },
+
+ #run when cloning
+ 'clone_callback' => sub { my( $cgi, $object, $fields_listref, $optref ) = @_; },
#run before display to return a different value
'value_callback' => sub { my( $columname, $value ) = @_; },
@@ -210,7 +213,7 @@ Example:
% 'size' => $f->{'size'},
% 'maxlength' => $f->{'maxlength'},
%
-% #checkbox, title, fixed, fixedhidden
+% #checkbox, title, fixed, hidden
% #& deprecated weird value hashref used only by reason.html
% 'value' => $f->{'value'},
%
@@ -592,8 +595,7 @@ if ( $cgi->param('error') ) {
$object = qsearchs({ %qsearch, 'hashref' => { $pkey => $clone } });
- #XXX document me
- &{$opt{'clone_callback'}}($cgi, $object, $fields)
+ &{$opt{'clone_callback'}}($cgi, $object, $fields, \%opt )
if $opt{'clone_callback'};
#$object->$pkey('');