Skip to content

Commit 0efc072

Browse files
authored
Merge pull request #367 from interactiv4/feature/M095M01A-15
feature/M095M01A-15 [MAGENTO 2] Edge modules with Grouped settings do…
2 parents 0dc0840 + f644588 commit 0efc072

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: view/adminhtml/web/js/modly.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,10 @@ define([
941941
question.find('.modly-group:first').find('.remove-group-button').closest('.field').hide();
942942
$('.group-button').unbind('click').on('click', function () {
943943
question.find('.modly-group:last').clone().appendTo('.question');
944-
question.find('.modly-group:last').find('.modly-field').val('');
944+
question.find('.modly-group:last').find('.modly-field').each(function (i, e) {
945+
let o = $(e).find('option:first')
946+
$(e).val($(o).val());
947+
});
945948
question.find('.modly-group:last').find('.remove-group-button').closest('.field').show();
946949
$('.remove-group-button').unbind('click').on('click', function () {
947950
$(this).closest('.modly-group').remove();

0 commit comments

Comments
 (0)