[Koha-bugs] [Bug 16519] Do not use global variables in [opac-]addbybiblionumbers.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat May 28 21:12:09 CEST 2016


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

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #51796|0                           |1
        is obsolete|                            |

--- Comment #5 from Marc Véron <veron at veron.ch> ---
Created attachment 51903
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=51903&action=edit
Bug 16519: Replace 'our' with 'my' in [opac-]addbybiblionumbers.pl

To avoid bug like bug 16518 and to ease the readability/maintainability
of these scripts, this patch replaces the use of 'our' with 'my' to
avoid the use of global variables.

Basically the code has been moved from subroutines to the appropriate places.

Test plan:
At the intranet and OPAC sides
1/ Add items to a list
2/ Add items to a list using an existing name
3/ Add items to a list you don't have right on it (by modifying the
biblionumber in the url)
4/ At the OPAC, use the opac-addbybiblionumber.pl without being logged
in to add items to a list

Signed-off-by: Marc Véron <veron at veron.ch>

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


More information about the Koha-bugs mailing list