summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-11-15 13:42:36 -0800
committerIvan Kohler <ivan@freeside.biz>2013-11-15 13:42:36 -0800
commit45f3aff8abf141f785882be779ad52c23f600e6c (patch)
treefddec1805728b1ff64b061963a54cba36634a230 /httemplate/edit
parent52606e395e99306e584e5ae459375a33752c231e (diff)
fix reported but unreproducible "infinite loop", RT#26101
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/elements/edit.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html
index 6c965326b..9e27f2a4c 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -527,7 +527,7 @@ Example:
% if ( $f->{curr_value_callback} ) {
% $curr_value = &{ $f->{curr_value_callback} }( $cgi, $object, $field ),
% } else {
-% $curr_value = $object->$field();
+% $curr_value = $object->$field() if $field;
% }
% $curr_value = &{ $opt{'value_callback'} }( $f->{'field'}, $curr_value )
% if $opt{'value_callback'} && $mode ne 'error';