[freeside-commits] freeside/httemplate/edit/elements edit.html, 1.38, 1.39
Ivan,,,
ivan at wavetail.420.am
Fri Sep 18 12:29:01 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/edit/elements
In directory wavetail.420.am:/tmp/cvs-serv675
Modified Files:
edit.html
Log Message:
better error message when the clone object isn't found, RT#6128
Index: edit.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/edit.html,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- edit.html 22 Aug 2009 00:29:58 -0000 1.38
+++ edit.html 18 Sep 2009 19:28:59 -0000 1.39
@@ -745,7 +745,8 @@
$qsearch{'extra_sql'} = ' AND '. $opt{'agent_clone_extra_sql'}
if $opt{'agent_clone_extra_sql'};
- $object = qsearchs({ %qsearch, 'hashref' => { $pkey => $clone } });
+ $object = qsearchs({ %qsearch, 'hashref' => { $pkey => $clone } })
+ or die "$pkey $clone not found in $table";
&{$opt{'clone_callback'}}( $cgi, $object, $fields, \%opt )
if $opt{'clone_callback'};
More information about the freeside-commits
mailing list