https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40062

            Bug ID: 40062
           Summary: Hold priority question
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Hold requests
          Assignee: koha-bugs@lists.koha-community.org
          Reporter: tomasco...@gmail.com
        QA Contact: testo...@bugs.koha-community.org
                CC: gmcha...@gmail.com

I was working on bug 40058, with the idea of adding some more fine grained
tests, when I found I didn't quite understand how priorities work. It smells
like a bug, though.

I generated:

* 1 item
* 4 random patrons ($patron_1, ..., $patron_4)

Placing 4 item-level holds one for each patron gives this results:

## priority = 1

Using the following snippet on the 4 patron holds (replacing `$patron_1` with
the other patrons:

```
        C4::Reserves::AddReserve(
            {
                branchcode     => $library->branchcode,
                borrowernumber => $patron_1->borrowernumber,
                biblionumber   => $item->biblionumber,
                priority       => 1,
                itemnumber     => $item->itemnumber,
            }
        )
```

Priorities end up being (consistently):

* 4
* 1
* 3
* 2

## priority = undef

Using the following snippet on the 4 patron holds:

```
        C4::Reserves::AddReserve(
            {
                branchcode     => $library->branchcode,
                borrowernumber => $patron_1->borrowernumber,
                biblionumber   => $item->biblionumber,
#                priority       => 1,
                itemnumber     => $item->itemnumber,
            }
        )
```

Priorities end up being (consistently):

* 1
* 4
* 3
* 2

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to