summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Chedemois2008-09-17 18:01:41 (GMT)
committer Yves Chedemois2008-09-17 18:01:41 (GMT)
commit069484bbc6eda5a02f791d0150a5170f5ad546e3 (patch)
tree4bd2ea87226514ecd79aaa3db21fca93a9b70e39
parent5d9934e19f37058b6f0002cc87f4234d3b0814d9 (diff)
#308215 by Reg - Nodereference: Do not filter on empty string when querying for referenceable nodes.
-rw-r--r--CHANGELOG.txt1
-rw-r--r--modules/nodereference/nodereference.module2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index e111e8f..60c251d 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -18,6 +18,7 @@ Be sure to visit update.php after uploading this release.
- #234774 Nifty new UI to add fields and groups (requires a cache clear) + initial integration with advanced_help module.
- #281749 by asimmonds: fix '0' not parsed as an alias for allowed values.
- #309365 by jhuckabee - Views integration: Consider relationships when force-adding the 'Node: Type' field.
+- #308215 by Reg - Nodereference: Do not filter on empty string when querying for referenceable nodes.
CCK 6.2-rc7
===========
diff --git a/modules/nodereference/nodereference.module b/modules/nodereference/nodereference.module
index 114e803..75ff748 100644
--- a/modules/nodereference/nodereference.module
+++ b/modules/nodereference/nodereference.module
@@ -768,7 +768,7 @@ function _nodereference_potential_references_standard($field, $string = '', $exa
return array();
}
- if (isset($string)) {
+ if ($string !== '') {
$string_clause = $exact_string ? " AND n.title = '%s'" : " AND n.title LIKE '%%%s%'";
$related_clause = "(". $related_clause .")". $string_clause;
$args[] = $string;