GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free: gitlabcommitvirtual2021.com

Commit 44d73682 authored by Kerenoc's avatar Kerenoc
Browse files

Fix error on fields for HTML export

parent 2729a348
......@@ -83,6 +83,7 @@ use GCExport::GCExportBase;
{
my $self = shift;
$self->{genericModelsDir} = $ENV{GCS_SHARE_DIR}.'/html_models/GCstar';
if ($self->{model})
{
$self->{modelsDir} = $ENV{GCS_SHARE_DIR}.'/html_models/'.$self->{model}->getName;
......@@ -103,6 +104,7 @@ use GCExport::GCExportBase;
my $defaultModel = '';
$self->{isGeneric} = {};
foreach (glob $self->{modelsDir}.'/*')
{
next if ($_ =~ /\/CVS$/) || ($_ =~ /\.png$/);
......@@ -240,7 +242,7 @@ use GCExport::GCExportBase;
sub wantsFieldsSelection
{
my $self = shift;
return 1;
return $self->{wantsFieldsSelection};
}
sub wantsImagesSelection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment