Sending a mass push message to all languages does not send any message at all. The tokens are filtered by a language '0' if 'all recipients' is selected which results in no matches.

The attached patch contains the following changes:

  • Fix language restriction
  • Rephrase 'all recipients' -> 'no restriction'
  • Make the dropdown label translatable
  • Added documentation to undocumented function parameters
  • Added array type hinting and removed is_array() checks
CommentFileSizeAuthor
#2 mass_push-2950380-2.patch3.08 KBsammuell

Comments

sammuell created an issue. See original summary.

sammuell’s picture

Status: Active » Needs review
StatusFileSize
new3.08 KB

Due to filtering the tokens by the language '0' no results are returned.
The patch changes the following:
* Fix all languages bug
* Added type hinting to function signatures and removed subsequent type checks
* Rephrased dropdown 'All recipients' to 'No restriction' and make it translatable
* Documented missing function parameter