summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-11-15 13:42:37 -0800
committerIvan Kohler <ivan@freeside.biz>2013-11-15 13:42:37 -0800
commitbeeaed152f7b8d6e663176abfe53a2fa058657e2 (patch)
tree79d4a5d2c5dfca4023ccad4e26f45fed3fe34208 /httemplate
parente7624ae1dd0093e4afef2356500fbd033ea43da8 (diff)
fix reported but unreproducible "infinite loop", RT#26101
Diffstat (limited to 'httemplate')
-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 cb8c3b261..938ed4fd3 100644
--- a/httemplate/edit/elements/edit.html
+++ b/httemplate/edit/elements/edit.html
@@ -519,7 +519,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';