[otrs-cvs] ImportExport/Kernel/System ImportExport.pm,1.21,1.22
cvs-log at otrs.org
cvs-log at otrs.org
Thu Mar 27 15:11:09 GMT 2008
Comments:
Update of /home/cvs/ImportExport/Kernel/System
In directory lancelot:/tmp/cvs-serv20513/Kernel/System
Modified Files:
ImportExport.pm
Log Message:
Improved needed stuff checks.
Author: mh
Index: ImportExport.pm
===================================================================
RCS file: /home/cvs/ImportExport/Kernel/System/ImportExport.pm,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** ImportExport.pm 26 Mar 2008 17:34:31 -0000 1.21
--- ImportExport.pm 27 Mar 2008 15:11:04 -0000 1.22
***************
*** 568,571 ****
--- 568,580 ----
);
+ # check template data
+ if ( !$TemplateData || !$TemplateData->{Object} ) {
+ $Self->{LogObject}->Log(
+ Priority => 'error',
+ Message => "Template with ID $Param{TemplateID} not complete!",
+ );
+ return;
+ }
+
# load backend
my $Backend = $Self->_LoadBackend(
***************
*** 803,806 ****
--- 812,824 ----
);
+ # check template data
+ if ( !$TemplateData || !$TemplateData->{Format} ) {
+ $Self->{LogObject}->Log(
+ Priority => 'error',
+ Message => "Template with ID $Param{TemplateID} not complete!",
+ );
+ return;
+ }
+
# load backend
my $Backend = $Self->_LoadBackend(
***************
*** 1387,1390 ****
--- 1405,1417 ----
);
+ # check template data
+ if ( !$TemplateData || !$TemplateData->{Object} ) {
+ $Self->{LogObject}->Log(
+ Priority => 'error',
+ Message => "Template with ID $Param{TemplateID} not complete!",
+ );
+ return;
+ }
+
# load backend
my $Backend = $Self->_LoadBackend(
***************
*** 1596,1599 ****
--- 1623,1635 ----
);
+ # check template data
+ if ( !$TemplateData || !$TemplateData->{Format} ) {
+ $Self->{LogObject}->Log(
+ Priority => 'error',
+ Message => "Template with ID $Param{TemplateID} not complete!",
+ );
+ return;
+ }
+
# load backend
my $Backend = $Self->_LoadBackend(
***************
*** 1805,1808 ****
--- 1841,1853 ----
);
+ # check template data
+ if ( !$TemplateData || !$TemplateData->{Object} ) {
+ $Self->{LogObject}->Log(
+ Priority => 'error',
+ Message => "Template with ID $Param{TemplateID} not complete!",
+ );
+ return;
+ }
+
# load backend
my $Backend = $Self->_LoadBackend(
***************
*** 2014,2017 ****
--- 2059,2071 ----
);
+ # check template data
+ if ( !$TemplateData || !$TemplateData->{Object} || !$TemplateData->{Format} ) {
+ $Self->{LogObject}->Log(
+ Priority => 'error',
+ Message => "Template with ID $Param{TemplateID} not complete!",
+ );
+ return;
+ }
+
# load object backend
my $ObjectBackend = $Self->_LoadBackend(
***************
*** 2094,2097 ****
--- 2148,2160 ----
);
+ # check template data
+ if ( !$TemplateData || !$TemplateData->{Object} || !$TemplateData->{Format} ) {
+ $Self->{LogObject}->Log(
+ Priority => 'error',
+ Message => "Template with ID $Param{TemplateID} not complete!",
+ );
+ return;
+ }
+
# load object backend
my $ObjectBackend = $Self->_LoadBackend(
More information about the cvs-log
mailing list