Bug 9117 [Follow-up] Fix group and subgroup filtering
When a group code is contained in another group code (e.g. 'COD' and
'CODE'), filtering on the longest ('CODE') include reports of the
smallest ('COD').
Same problem for the subgroups.
This patch fixes this.
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
fc4cbe6884
commit
4fad5a7a6b
|
|
@ -95,7 +95,7 @@ $(document).ready(function(){
|
|||
var g_id = $(ui.tab).attr('id')
|
||||
var g_name = $(ui.tab).text();
|
||||
if (g_id && g_id.length > 0) {
|
||||
rtable.fnFilter(g_name, 3);
|
||||
rtable.fnFilter('^' + g_name + '$', 3, true, true, true, false);
|
||||
rtable.fnSetColumnVis(3, false);
|
||||
for(var i in group_subgroups[g_id]) {
|
||||
$("#subgroup_filter").append(
|
||||
|
|
@ -115,7 +115,7 @@ $(document).ready(function(){
|
|||
var sg_id = $(selected).val();
|
||||
var sg_name = $(selected).text();
|
||||
if (sg_id.length > 0) {
|
||||
rtable.fnFilter(sg_name, 4);
|
||||
rtable.fnFilter('^' + sg_name + '$', 4, true, true, true, false);
|
||||
rtable.fnSetColumnVis(4, false);
|
||||
} else {
|
||||
rtable.fnFilter('', 4);
|
||||
|
|
|
|||
Loading…
Reference in New Issue