fix CS posts not allowing new attachments after deleting old ones
This commit is contained in:
parent
7f37c20028
commit
81bb746f9e
2 changed files with 4 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ sub toHtml {
|
|||
my $i18n = WebGUI::International->new($self->session);
|
||||
my $uploadControl = undef;
|
||||
my $storage = $self->getStorageLocation;
|
||||
my @files = $storage->getFiles if (defined $storage);
|
||||
my @files = @{ $storage->getFiles } if (defined $storage);
|
||||
my $maxFiles = $self->get('maxAttachments') - scalar(@files);
|
||||
if ($maxFiles > 0) {
|
||||
$self->session->style->setScript($self->session->url->extras('FileUploadControl.js'),{type=>"text/javascript"});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue