[Koha-bugs] [Bug 9824] Hide basket with no expected items in basqket list by bookseller

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 17 14:25:03 CEST 2013


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

--- Comment #30 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
(In reply to comment #27)
> I have been thinking about this for a while now and I can see that it's
> problematic because the old behaviour has been broken quite a while ago and
> now it could be a problematic change for other libraries using Koha's acq. 
> 
> I was wondering if I could use jQuery to 'revert' to the original
> behaviour... probably a bit tricky, but it could work until we see this
> fixed properly.

That would be quite easy to do:
$('.baskets tbody tr').each(function () {
    if ($('td:eq(2)', this).text() == $('td:eq(4)', this).text() &&
$('td:eq(2)', this).text() != '0') {
        $(this).hide();
    }
});

It sounds like a better patch is in the works for 3.12.1, so I am inclined to
revert this patch for now, as it will change the behavior for anyone already
using 3.8 or 3.10, and no one who upgraded from 3.6 noticed the change until
this March. I will delay a decision until later today.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list