Bug 17389: (bug 16035 follow-up) Fix export non-default frameworks

Trivial patch, no need to explain anything :)

Test plan:
Export default framework
Export other frameworks
=> The frameworkcode column should contain the framework code

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised

Signed-off-by: Katrin Fischer  <katrin.fischer@bsz-bw.de>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-10-03 15:15:40 +01:00 committed by Brendan Gallagher
parent f28460bdb7
commit a1eeffd838

View file

@ -53,7 +53,7 @@ my $action = $input->param('action') || 'export';
if ($action eq 'export' && $input->request_method() eq 'GET') {
my $strXml = '';
my $format = $input->param('type_export_' . $frameworkcode);
if ($frameworkcode == 'default') {
if ($frameworkcode eq 'default') {
ExportFramework('', \$strXml, $format);
} else {
ExportFramework($frameworkcode, \$strXml, $format);