|
From: | Dmitry Borodaenko |
Subject: | Re: BUG (not urgent): runtime error when editing an openly editable non-text media resource of another user |
Date: | Sun, 20 May 2007 13:57:23 +0100 |
On 5/20/07, Dmitry Borodaenko <address@hidden> wrote:
On 5/19/07, boud <address@hidden> wrote: > https://savannah.nongnu.org/bugs/index.php?19909 Confirmed, I will look into this. When reproducing the bug, I also noticed that preview page says "by guest", not "by user", which means that Message class fails to set creator properly.
The fix is simple and obvious: --- lib/samizdat/controllers/message_controller.rb 3e4f5ea3e7a6cb63ce0b2b8929f0825023d1b978 +++ lib/samizdat/controllers/message_controller.rb 0f2485144a2a0fbc72fef7603c89b43cf1d2503f @@ -156,6 +156,7 @@ class MessageController < Controller end @message.assert_current_version + set_creator set_content set_lang(@message.lang) set_desc -- Dmitry Borodaenko
[Prev in Thread] | Current Thread | [Next in Thread] |