Skip to content

Процессор sxQueueSendProcessor #28

@Marabar

Description

@Marabar

Привет, Василий.
Потребовалось отправка рассылки конкретному пользователю через процессор из сниппета.
Вторым параметром должен передаваться массив, а здесь вона что. И getProperty('ids') не возвращает айди рассылки.
Рабочий вариант у меня получился такой:

if (!$this->getProperties('ids')) {
    return $this->failure($this->modx->lexicon('sendex_queue_err_ns'));
}

if (is_array($this->getProperties('ids'))) {
    $ids = $this->getProperties('ids');
} else {
    $ids = explode(',', $this->getProperties('ids'));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions