From: Ævar Arnfjörð Bjarmason Date: Sun, 12 Jul 2009 16:01:49 +0000 (+0000) Subject: Fixed a bug in how fields in /message/new were being pre-filled out. X-Git-Tag: live~7929 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2153fb6efde49f305c3f0d987f37a27d8e43ae26?hp=2153fb6efde49f305c3f0d987f37a27d8e43ae26 Fixed a bug in how fields in /message/new were being pre-filled out. When someone went to /message/new/:user the "Subject" are would be pre-filled out with t('message.new.title'). The problem was that the @title template variable was being used for two purposes, to set the HTML AND to pre-fill out the subject. We don't always want these two to be the same, but sometimes we do. E.g. when someone replies to a diary entry and visits /message/new/:user?title=Foo we want Foo in the <title> and in the pre-filled out Subject, and the same goes for replying to a message. So I've split up the @title variable into @title and @subject. ---