rsanchez/activerecord — Issue #2: member_id and userdata
Author: GDmac
Created: 2012-01-26 13:29:45+00:00
State: open

Grmbl, memberdata is parsed late in the template parsing process.
Making it difficult to fetch profile fields for the current user.

Added the following in build_query

foreach ($params as $method => $value)
{
// some normally late parsed variables that are already in the session
if($value=="{member_id}") $value = $this->EE->session->userdata['member_id'];