[Koha-bugs] [Bug 7178] Improve order item creation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 2 16:26:08 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7178

--- Comment #19 from Julian Maurice <julian.maurice at biblibre.com> ---
Hmm... I'm quite sure there is a problem with some caching somewhere.
In patch, additem.js:60 contains:

        var field_elt = $("#" + index)
            .find("[name='kohafield'][value='items."+field+"']")
            .prevAll("[name='field_value']")[0];

(no 'node' variable here)
while in master, additem.js:60 is

        var origin = node.getElementsByTagName("select");

(here is the 'node'!)

Same for the document.getElementById which is not anymore in additem.js with
the patch

So, if it's not from your browser, maybe the server is caching static files.
If you want to check easily, additem.js with the patch starts with

        function addItem( node, unique_item_fields ) {

while in master it's:

        function deleteItemBlock(index) {

About the quantity, items are counted only after clicking on "Add" (and the
item is displayed in the items list/table). This is a behaviour change. You
should consider the item form as an 'Edit box' where changes are applied only
after clicking on 'Add' or 'Update'. And the items list/table is what will be
saved.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-bugs/attachments/20120302/579457af/attachment.htm>


More information about the Koha-bugs mailing list