Bug 13717

Summary: Add ability to move old patron attributes when importing borrowers
Product: Koha Reporter: Kyle M Hall <kyle>
Component: ToolsAssignee: Kyle M Hall <kyle>
Status: Patch doesn't apply --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: chris, katrin.fischer
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Medium patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 12598    
Bug Blocks:    
Attachments: Bug 13717 - Add ability to move old patron attributes when importing new patron data

Description Kyle M Hall 2015-02-17 16:56:13 UTC
Some libraries would like to move the value of a patron attribute to a different attribute when updating patrons via the import patrons tool.
Comment 1 Kyle M Hall 2015-02-17 17:32:44 UTC
Created attachment 35984 [details] [review]
Bug 13717 - Add ability to move old patron attributes when importing new patron data

Some libraries would like to move the value of a patron attribute to a
different attribute when updating patrons via the import patrons tool.

Test Plan:
1) Enable patron attributes
2) Create 2 attributes TEST and TEST_PREV
3) Create a patron with a TEST attribute
4) Create a patrons CSV file with that patron in it,
   containing a new TEST attribute
5) Go to tool/import patrons
6) Select your CSV file
7) At the bottom of the form is the to/from selector for attributes,
   choose TEST to be 'from', and TEST_PREV to be 'to'
8) Submit the form
9) Observe the patron record, note the previous value for TEST
   has now been moved to an instance of TEST_PREV
Comment 2 Nicole C. Engard 2015-03-04 15:22:46 UTC
Applying: Bug 13717 - Add ability to move old patron attributes when importing new patron data
fatal: sha1 information is lacking or useless (Koha/Borrower/Import.pm).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 Bug 13717 - Add ability to move old patron attributes when importing new patron data
When you have resolved this problem run "git bz apply --continue".
If you would prefer to skip this patch, instead run "git bz apply --skip".
To restore the original branch and stop patching run "git bz apply --abort".
Patch left in /tmp/Bug-13717---Add-ability-to-move-old-patron-attribu-k3144M.patch
Comment 3 Kyle M Hall 2015-03-26 12:25:00 UTC
Looks like you forgot to apply the dependency.
Comment 4 Chris Cormack 2016-03-06 21:32:42 UTC
This bug depends on 12598 which is in status Patch doesn't apply
Comment 5 Katrin Fischer 2017-10-15 10:48:56 UTC
Dependent bug 12598 has reached 'signed off' status now. But this patch no longer applies on top:

Apply? [(y)es, (n)o, (i)nteractive] y
Applying: Bug 13717 - Add ability to move old patron attributes when importing new patron data
fatal: sha1 information is lacking or useless (Koha/Borrower/Import.pm).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001 Bug 13717 - Add ability to move old patron attributes when importing new patron data
The copy of the patch that failed is found in:
   /home/vagrant/kohaclone/.git/rebase-apply/patch
When you have resolved this problem run "git bz apply --continue".
If you would prefer to skip this patch, instead run "git bz apply --skip".
To restore the original branch and stop patching run "git bz apply --abort".
Patch left in /tmp/Bug-13717---Add-ability-to-move-old-patron-attribu-RtYPcs.patch