fixed subtle bug with re-login

This commit is contained in:
Peter Schojer 2008-09-16 08:44:33 +00:00
parent 8f9807daf3
commit 6c14940e3e

View File

@ -90,8 +90,7 @@ void DynamicCodeLoaderRenderer::renderHead(const Renderable* pRenderable, const
WebApplication::instance().registerAjaxProcessor(Poco::NumberFormatter::format(pLoader->id()), pL); WebApplication::instance().registerAjaxProcessor(Poco::NumberFormatter::format(pLoader->id()), pL);
// the js file: only do when not already set // the js file: only do when not already set
if (!pLoader->getViewCode().empty()) // bug: this optimization breaks logout/login stuff!
return;
std::ostringstream out; std::ostringstream out;
View::Ptr pView = pLoader->view(); View::Ptr pView = pLoader->view();