Commit 26352c48 authored by anon's avatar anon

Updated the changelog before new release.

parent f404676f
Linkit x.x-x.x, xxxx-xx-xx
Linkit 7.x-2.3, 2012-04-25
------------------------------
- Added feature #1511966: Autofocus in the search field.
- Fixed issue #1508846: Token module support for terms does not handle the right
tokens.
- Added entity module as a new dependency.
- Fixed issue #1508148: Term autocompletion by bundle doesn't work.
- Fixed issue #1508826: Warning: Invalid argument supplied for foreach() in
element_children().
Linkit 7.x-2.2, 2012-03-28
------------------------------
......
......@@ -3,6 +3,7 @@ description = Provides an easy interface for inserting links to internal content
core = 7.x
configure = admin/config/content/linkit
dependencies[] = ctools
dependencies[] = entity
; Our plugins interfaces and abstract implementations.
......
......@@ -161,7 +161,11 @@ class LinkitPluginEntity extends LinkitPlugin {
$this->query->propertyCondition($this->entity_field_label,
'%' . db_like($this->serach_string) . '%', 'LIKE')
->addTag('linkit_entity_autocomplete')
->addTag('linkit_' . $this->plugin['name'] . '_autocomplete');
->addTag('linkit_' . $this->plugin['entity_type'] . '_autocomplete');
// Add access tag for the query.
// There is also a runtime access check that uses entity_access().
$this->query->addTag($this->plugin['entity_type'] . '_access');
// Bundle check.
if (isset($this->entity_key_bundle) && isset($this->conf['bundles']) ) {
......@@ -183,10 +187,9 @@ class LinkitPluginEntity extends LinkitPlugin {
$entities = entity_load($this->plugin['entity_type'], $ids);
foreach ($entities AS $entity) {
// If we have the entity module enabled, we check the access againt the
// definded entity access callback.
if (module_exists('entity') && !entity_access('view', $this->plugin['entity_type'], $entity)) {
// continue;
// Check the access againt the definded entity access callback.
if (!entity_access('view', $this->plugin['entity_type'], $entity)) {
continue;
}
$matches[] = array(
......
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