Bug 22245: Allow copy/move from and to control fields
The JS conditions were wrong, we want to allow copy and move between
control fields.
Test plan:
Create a new MARC modification template action using control fields.
Confirm that you are allowed to copy/move a control field to another one
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 72cbcf7c4b)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
d49bb4fa0b
commit
9020bd4bd3
|
|
@ -25,8 +25,8 @@ $(document).ready(function() {
|
|||
alert( MSG_MMT_CONTROL_FIELD_EMPTY );
|
||||
return false;
|
||||
}
|
||||
if ( ( $("#from_field").val() < 10 && $("#to_subfield").val().length === 0 ) ||
|
||||
( $("#to_field").val() < 10 && $("#from_subfield").val().length === 0 ) ) {
|
||||
if ( ( $("#from_field").val() < 10 && $("#to_field").val() >= 10 ) ||
|
||||
( $("#to_field").val() < 10 && $("#from_field").val() >= 10 ) ) {
|
||||
alert( MSG_MMT_CONTROL_FIELD );
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue