Solve some dependency issues
This commit is contained in:
parent
65c04acc7c
commit
8001f33bed
2 changed files with 7 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ use warnings;
|
|||
use Carp;
|
||||
|
||||
use WebGUI::Mailing::Admin;
|
||||
use WebGUI::Mailing::Email;
|
||||
|
||||
use JSON qw{ to_json };
|
||||
|
||||
use base 'WebGUI::Crud';
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ use Carp 'confess';
|
|||
use WebGUI::Asset;
|
||||
use WebGUI::AdminConsole;
|
||||
|
||||
# prevent sub redef warnings
|
||||
#require WebGUI::Mailing;
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub canManage {
|
||||
my $self = shift;
|
||||
|
|
@ -113,6 +116,7 @@ sub www_createMailing {
|
|||
|| return "Error: issue [$issueId] for asset [$assetId] could not be instanciated.";
|
||||
|
||||
# All ok, create mailing.
|
||||
require WebGUI::Mailing;
|
||||
my $mailing = WebGUI::Mailing->create( $session, {
|
||||
assetId => $assetId,
|
||||
issueId => $issueId,
|
||||
|
|
@ -225,6 +229,7 @@ sub www_view {
|
|||
my $issueId = $issue->getId;
|
||||
|
||||
my @mailings;
|
||||
require WebGUI::Mailing;
|
||||
my $it = WebGUI::Mailing->getAllIterator( $session, { sequenceKeyValue => $issueId } );
|
||||
while ( my $mailing = $it->() ) {
|
||||
push @mailings, $mailing->getViewVars;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue