- Issue created by @bad.shape.guy
Good day, i wrote simple code
global $user;
$data['custom_table']['custom_field'] = array(
'title' = 'Custom field',
'help' = 'Custom field',
'relationship' = array(
'base' => 'another_custom_table',
'base_field' => 'another_custom_field',
'handler' => 'views_handler_relationship',
'extra' = array(
array('field' => 'some_field', 'operator' => '=', 'value' => $user->uid),
)
);
Thus, I want to add a dynamic filter to the request based on the ID of the current user, but in this case it always returns 1 to me, i.e. as if the administrator is authorized in any case
How can I send the current user exactly
Active
3.29
Views Data