mailnotification in Job class

Hi All,

I have downloaded the latest v2 file and started using it. But while going through the Job class I found that its constructor is not setting the $mailNotification object in the constructor. The code is as mentioned below:

     * Mail notification settings
     * @var MailNotification
    public $mailNotification;
    public function __construct($label = null, $trigger = null, $source = null, $baseOutputFilename = null,
                                $outputFormats = null, $repositoryDestination = null)
        $this->label = $label;
        $this->trigger = $trigger;
        $this->source = $source;
        $this->baseOutputFilename = $baseOutputFilename;
        $this->outputFormats = $outputFormats;
        $this->repositoryDestination = $repositoryDestination;

This might cause problem for users who want to set up mailnotification while scheduling reports/jobs. Could anyone let me know if it is indeed missing to update the mailNotification object or is intended to work as it is ?



ashcsi1322's picture
Joined: Dec 6 2013 - 4:52am
Last seen: 7 years 3 months ago
Hi All, I fixed the following issue. There is no need to add $mailNotification object in the constructor. But it can be set after creating the job object for e.g.: $job->mailNotification; thanks ashy
ashcsi1322 - 7 years 10 months ago

0 Answers:

No answers yet