]> git.koha-community.org Git - koha.git/commit
Bug 12540: Display "Every" on editing a MMT action if previously selected
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 22 Sep 2015 10:16:28 +0000 (11:16 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Sun, 29 Nov 2015 20:38:25 +0000 (21:38 +0100)
commit868bdc355d9f5d7e098fd00eff2fbc29597659c7
tree6049d6157262f92e1cb2fcd0a149fc2c640cfa2a
parentbc668dccd3af3fba14e04a764499b0d762c63455
Bug 12540: Display "Every" on editing a MMT action if previously selected

On creating a marc modification template action, the "All" is changed with
"Every" if the condition field is the same as the original field.

But on editing, the "All" value is not replaced. For consistency, it
should.

Test plan:
1/ Create the following action:
    Copy field 650$x to 650$y if 650$z matches "foobar"
Note that the "All" is replaced with "Every" when the condition is the
same field as the original field.
2/ Save
3/ Edit the action.
The "Every" should be selected.

Without this patch, "All" is selected.

Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 384dceeef583c444ac8350c928a2e1aed34e536b)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt