@@ -, +, @@ $frameworkcode is set to 'default'. This fixes the format issue. Then, if $frameworkcode = default, an empty string (rather than null) is passed to the ExportFramework method, as the framework code in the DB for default codes is "". --- admin/import_export_framework.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/admin/import_export_framework.pl +++ a/admin/import_export_framework.pl @@ -46,14 +46,18 @@ unless ($authenticated) { exit 0; } -my $frameworkcode = $input->param('frameworkcode') || ''; +my $frameworkcode = $input->param('frameworkcode') || 'default'; my $action = $input->param('action') || 'export'; ## Exporting if ($action eq 'export' && $input->request_method() eq 'GET') { my $strXml = ''; my $format = $input->param('type_export_' . $frameworkcode); - ExportFramework($frameworkcode, \$strXml, $format); + if ($frameworkcode == 'default') { + ExportFramework('', \$strXml, $format); + } else { + ExportFramework($frameworkcode, \$strXml, $format); + } if ($format eq 'csv') { # CSV file --