Commit da2cdb8d authored by yched's avatar yched
Browse files

#699066 by litwol and chx : add meta data to the 'referenceable nodes / users'...

#699066 by litwol and chx : add meta data to the 'referenceable nodes / users' queries for easier tracking
parent 46d22a5c
......@@ -525,6 +525,7 @@ function _node_reference_potential_references_standard($field, $string = '', $ma
$node_title_alias = $query->addField('n', 'title', 'node_title');
$node_type_alias = $query->addField('n', 'type', 'node_type');
$query->addTag('node_access');
$query->addMetaData('id', ' _node_reference_potential_references_standard');
if (is_array($field['settings']['referenceable_types'])) {
$query->condition('n.type', $field['settings']['referenceable_types'], 'IN');
......
......@@ -438,6 +438,7 @@ function _user_reference_potential_references_standard($field, $string = '', $ma
$user_uid_alias = $query->addField('u', 'uid');
$user_name_alias = $query->addField('u', 'name');
$user_status_alias = $query->addField('u', 'status');
$query->addMetaData('id', ' _user_reference_potential_references_standard');
if (is_array($field['settings']['referenceable_status'])) {
$query->condition('u.status', $field['settings']['referenceable_status']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment