If I create a directional relation node(content_type)->taxonomy_term(vocab) I get an error when using the autocomplete field from the relation add block.
I don't have any error if I chose "All taxonomy term bundles" and it works this way. But it mean I can point to any term from any voc

StatusText: Service unavailable (with message)
ResponseText: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'vocabulary_machine_name' in 'where clause': SELECT taxonomy_term_data.tid AS entity_id, :entity_type AS entity_type, NULL AS revision_id
FROM
{taxonomy_term_data} taxonomy_term_data
WHERE (taxonomy_term_data.name LIKE :db_condition_placeholder_0 ESCAPE '\\') AND (vocabulary_machine_name IN (:db_condition_placeholder_1))
LIMIT 12 OFFSET 0; Array
(
[:db_condition_placeholder_0] => %ten%
[:db_condition_placeholder_1] => myvocab
[:entity_type] => taxonomy_term
)
in EntityFieldQuery->execute() (line 1136 of /var/...).

CommentFileSizeAuthor
#3 issue-1365432-add-taxonomy-relation-3.patch1003 bytesmr.york

Comments

sanmikele’s picture

Having same issue with dev version:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: (...)/relation_add/autocomplete/concerne/target
StatusText: error
ResponseText: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'vocabulary_machine_name' in 'where clause': SELECT taxonomy_term_data.tid AS entity_id, :entity_type AS entity_type, NULL AS revision_id
FROM 
{taxonomy_term_data} taxonomy_term_data
WHERE  (taxonomy_term_data.name LIKE :db_condition_placeholder_0 ESCAPE '\\') AND (vocabulary_machine_name IN  (:db_condition_placeholder_1)) 
LIMIT 6 OFFSET 0; Array
(
[:db_condition_placeholder_0] => %w%
[:db_condition_placeholder_1] => domaines
[:entity_type] => taxonomy_term
)
in EntityFieldQuery->execute() (line 1136 of /var/www/vhosts/xxxxxxxxxx/includes/entity.inc).
mr.york’s picture

Project: Relation » Relation add
Version: 7.x-1.0-beta3 » 7.x-0.1
Component: Relation_add » Code
mr.york’s picture

Version: 7.x-0.1 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1003 bytes

I've attached the patch which fixes this problem.

mr.york’s picture

Status: Needs review » Fixed

I've commited last patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Said contrary than wanted