mailnotification in Job class

0

Hi All,

I have downloaded the latest v2 jrs-rest-php-client-master.zip 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 ?

Thanks

Ashy

ashcsi1322's picture
Joined: Dec 6 2013 - 4:52am
Last seen: 4 years 1 week 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 - 4 years 7 months ago

0 Answers:

No answers yet
Feedback