Author Topic: Categories numbers (x / y) not correct (IMatch 2021.16.2)  (Read 262 times)

axel.hennig

  • Full Member
  • **
  • Posts: 219
Categories numbers (x / y) not correct (IMatch 2021.16.2)
« on: June 05, 2022, 10:14:14 PM »
Starting from the current IMatch version 2021.16.2 the categories numbers does not seem to be correct any more.

How to reproduce:
(1) Make the following category-tree (see also attachement)
Top
    Sub
        Sub-sub
(2) Make category "Sub": Direct assignments only -> yes
(3) Assign one image to "Top" and two images to "Sub-sub"
(4) "Top" should show: "(1 / 3)" but it shows "(1 / 1)"
(5) If category "Sub" has: Direct assignments only -> no. Then "Top" shows "(1 / 3)"

I'm pretty sure that this behaviour changed with this IMatch release.

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 31554
Re: Categories numbers (x / y) not correct (IMatch 2021.16.2)
« Reply #1 on: June 06, 2022, 11:22:53 AM »
Confirmed. An unexpected side effect of some code refactoring. Stupid me!
Fixed for the next release.

ubacher

  • Oldtimer
  • ****
  • Posts: 2521
Re: Categories numbers (x / y) not correct (IMatch 2021.16.2)
« Reply #2 on: June 07, 2022, 07:12:07 AM »
I have some problems when filtering categories. Some files, which should be
filtered out, are not. I am using this filter preset for years now!
Could this "refactoring" be the cause? Should I just wait for the new version?

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 31554
Re: Categories numbers (x / y) not correct (IMatch 2021.16.2)
« Reply #3 on: June 07, 2022, 09:27:43 AM »
It would help if you would explain which filter you apply and of what nature the problem is.

The error reported here and fix is only related to categories which use the direct assignments only option.
« Last Edit: June 07, 2022, 01:22:15 PM by Mario »

axel.hennig

  • Full Member
  • **
  • Posts: 219
Re: Categories numbers (x / y) not correct (IMatch 2021.16.2)
« Reply #4 on: June 07, 2022, 01:03:47 PM »
Confirmed. An unexpected side effect of some code refactoring. Stupid me!
Fixed for the next release.

Perfect, thanks.

ubacher

  • Oldtimer
  • ****
  • Posts: 2521
Re: Categories numbers (x / y) not correct (IMatch 2021.16.2)
« Reply #5 on: June 09, 2022, 10:07:31 AM »
My problem with the category filtering has disappeared with the
installation of the new version. But since it had disappeared before
on a different db I assume it was not the version which made the difference but the new installation.

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 31554
Re: Categories numbers (x / y) not correct (IMatch 2021.16.2)
« Reply #6 on: June 09, 2022, 11:19:40 AM »
Good news, then.