* {di} binding now always returns the duplicate indenity index 1..n and will never unwind

This commit is contained in:
Reinhard Pointner 2015-03-16 05:51:03 +00:00
parent cc425ba66f
commit 1fcdd21837
1 changed files with 1 additions and 2 deletions

View File

@ -788,8 +788,7 @@ public class MediaBindingBean {
duplicates.add(it);
}
}
int di = identityIndexOf(duplicates, getInfoObject());
return di == 0 ? null : di;
return 1 + identityIndexOf(duplicates, getInfoObject());
}
@Define("self")