Match projects based on namespace. Change-Id: Ia832862bc61ab5ff77e782598e8d665965512f85
diff --git a/classes/ProjectContentIdMapper.class.inc b/classes/ProjectContentIdMapper.class.inc index 5ee66c9..6b6d18c 100644 --- a/classes/ProjectContentIdMapper.class.inc +++ b/classes/ProjectContentIdMapper.class.inc
@@ -276,9 +276,9 @@ or (pn.namespace=':namespace:' and pn.name=':name:' and instr(pn.namespace, 'org.eclipse') = 1) or - (pn.namespace=':namespace:' and pn.name=':name:' - and (instr(pn.namespace, substring_index(pn.project, '.', -1)) != 0 or instr(pn.namespace, 'org.eclipse.') != 0) - and (instr(pn.name, substring_index(pn.project, '.', -1)) != 0 or instr(pn.name, 'org.eclipse.') != 0)) + (pn.namespace=':namespace:' + and (instr(pn.namespace, substring_index(pn.project, '.', -1)) != 0) + and pn.namespace like 'org.eclipse.%') limit 1"; $args = array(':namespace:' => $namespace, ':name:' => $name); query('dashboard', $sql, $args, function($row) use (&$project) {