]> git.openstreetmap.org Git - rails.git/commitdiff
Fixed a bug in how fields in /message/new were being pre-filled out.
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 12 Jul 2009 16:01:49 +0000 (16:01 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sun, 12 Jul 2009 16:01:49 +0000 (16:01 +0000)
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 <title> 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.


No differences found