Undefined method `scan'

Hello

There is error when trying to save translate of some email template. For example, “Pending Users Reminder” at https://example.com/admin/customize/email_templates/system_messages.pending_users_reminder

`Started PUT "/admin/customize/email_templates/system_messages.pending_users_reminder" for 95.188.70.155 at 2019-03-06 11:29:06 +0000
Processing by Admin::EmailTemplatesController#update as JSON
  Parameters: {"email_template"=>{"subject"=>"", "body"=>"Some text"}, "id"=>"system_messages.pending_users_reminder"}
Completed 500 Internal Server Error in 451ms (ActiveRecord: 50.8ms)
NoMethodError (undefined method `scan' for #<Hash:0x00007f6dbf2f49d0>)
/var/www/discourse/lib/i18n/i18n_interpolation_keys_finder.rb:3:in `find'`

Discourse version v2.3.0.beta3 +22

1 Like

@gerhard can you have a look?

1 Like

Thanks for reporting that issue. It’s fixed.

https://github.com/discourse/discourse/commit/40009784522604b577b88bce633fdc5eb4848598

6 Likes