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

            Bug ID: 43211
           Summary: Koha hungs when receiving order with AcqCreateItem set
                    to 'receiving an order'
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Acquisitions
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
            Blocks: 41563
  Target Milestone: ---

Koha hangs when receiving an order with AcqCreateItem set to "receiving an
order".

The JavaScript console shows:

Uncaught TypeError: unique_item_fields.split is not a function

This is most likely caused by the changes introduced in bug 41563.

        Koha.addPrefs({
[...]
            UniqueItemFields: [% Koha.Preference('UniqueItemFields') ? 1 : 0 |
html %],
        });

UniqueItemFields should not be reduced to a number. It is expected to be a
string containing a list of item fields separated by pipes (|), which is why
the code later calls split() on it.

To reproduce:

1. Create a basket and set "Create items when" to "receiving an order".
2. Add an order and close the basket.
3. Attempt to receive the order.

Koha will most likely hang.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41563
[Bug 41563] Tidy kohaTable block - acqui
-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to