ymcatwincities / openy

The Open Y platform. See README.md below
https://openy.org
GNU General Public License v3.0
49 stars 111 forks source link

openy_ckeditor throws errors related to amenities #2601

Closed froboy closed 2 years ago

froboy commented 2 years ago

From https://github.com/fivejars/openy_gated_content/pull/418#issuecomment-984147491

Notice: Undefined variable: amenities_values in openy_ckeditor_tokens() (line 70 of profiles/contrib/openy/modules/custom/openy_ckeditor/openy_ckeditor.module). Warning: Invalid argument supplied for foreach() in _openy_ckeditor_prepare_amenities_view() (line 91 of /var/www/docroot/profiles/contrib/openy/modules/custom/openy_ckeditor/openy_ckeditor.module)

These occur during some searches with Virtual Y. Both look like quick fixes to ensure the variables exist.

To reproduce the issue (there might be a more straightforward way):