Bug 17725: Do not copy subfield's content when cloning
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Jan 2017 12:39:47 +0000 (13:39 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 13 Jan 2017 11:26:34 +0000 (11:26 +0000)
commite12b080a4cc1131fd55810e1c18d0217e0ef765a
tree3178b6d6095b2269b15d1fd9c8470e86414bba9e
parentc7a02725808ba029a28a178ff2ffe9045a9842b0
Bug 17725: Do not copy subfield's content when cloning

To replicate:
- Open an existing record in your catalog
- Create another field or subfield of a field/subfield already used using the icon to repeat it
- Verify that the content is copied over
- Verify this happens for input (one line) and textare (multiple lines)

I can't make this happen for when creating a new record, but more consistently on editing existing records.

This is rather annoying when cataloguing in Koha, as the cataloguer has to empty the field first and that adds an extra step for each repeated field.

Test plan:
Confirm than the content is not copied when you clone a field or a subfield.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/cataloging.js