Bug 7485 - Cannot edit barcode on Fast Add
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 27 Mar 2012 16:01:33 +0000 (12:01 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 29 Mar 2012 08:01:35 +0000 (10:01 +0200)
commitaa8c40120bdd5a50a4d8fbdae8c54096d1c4a1e3
treefa6f0ace155fc763427e0fe1d83479cfa1d64b08
parentcfa444d583e93b880ee4eaa4311524de2c24b963
Bug 7485 - Cannot edit barcode on Fast Add

Simple fix, a special case was added for the fast add framework
in the case that an item was being checked out that had not been
catalogued. In that case, the barcode was being passed as a parameter
through addbiblio.pl to additem.pl.

This barcode param was used to overwrite the existing value, so if
no barcode param was passed ( which is only the case with fast adds
from the circ screen ), the barcode field would appear empty in the
items editor.

This commit causes that special case code to check for an existing
barcode value first, and only use the cgi parameter 'branch' in the
case that there is no existing barcode value.

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Editing barcode of fast added item now works. Passes t xt

Recommend this for 3.6 release.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
cataloguing/additem.pl