Bug 12859 - Patron import tool doesn't import extened attributes values any longer
authorJacek Ablewicz <abl@biblos.pk.edu.pl>
Tue, 2 Sep 2014 09:46:06 +0000 (11:46 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 16 Sep 2014 18:09:35 +0000 (15:09 -0300)
commit09c4417216c32d6af74da193933e95374b0ee7df
tree8e67be5ffd2824827b6251d7a0d0ae278017e07d
parent8a63c17f79d63bcdb669b74b084b83b65295d246
Bug 12859 - Patron import tool doesn't import extened attributes values any longer

To reproduce:

1/ define/set up extended pattron attribute in administration module,
2/ using "Tools -> Import patrons", try to import some sample patron
record[s], having some arbitrary (non-empty) value assigned in
'pattron_attributes' CSV column for attribute defined in step 1/,
3/ observe that extended attribute defined in step 1/ was not imported
(not added to the database), without any warnings.

This patch restores a small code chunk which went AWOL somewhere around
commit b4158f2d2485c9e57bd7f14362b210732bef9d35.

To test:

1/ apply patch & retest,
3/ ensure that this issue is no longer reproductible, and there are no
apparent regressions of any kind,
4/ make sure that the ability to specify default value for extended
attributes added in bug Bug 12716 is still working as intended
(= follow up the test plan for bug 12716).

Signed-off-by: Petter Goksoyr Asen <boutrosboutrosboutros@gmail.com>
Patch fixes import of extended patron attributes.
Step 1-3 in test plan confirmed.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
tools/import_borrowers.pl