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

--- Comment #16 from MichaƂ <[email protected]> ---
Thanks for quick response. Atm I can't wrap my head around why the other way
around copying/moving doesn't work. Btw related bugs are: 22436, 27978 (they're
both duplicates of each other that request copying between control/non-control
both ways around).

Btw I mislooked, it seems the func `copy_and_replace_field` was adjusted, while
`copy_field` and `move_field` were not.

As for JS side, I would propose such fix:

```js
if ( ( $("#to_field").val() < 10 && $("#to_subfield").val().length > 0 )
    || ( $("#from_field").val() < 10 && $("#from_subfield").val().length > 0 )
) {
    alert( __("Control fields cannot have subfields.") );
    return false;
} else if ( $("#from_subfield").val().length != $("#to_subfield").val().length
) {
    alert( __("Both subfield values should be filled or empty.") );
    return false;
}
```

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to