Skip to content

Commit 6dd914a

Browse files
committed
fix issue with usage page and tinymce on template customization for Ruby 3 and Tinymce 6
1 parent 4df85c7 commit 6dd914a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/javascript/src/orgAdmin/phases/newEdit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $(() => {
8181
},
8282
});
8383

84-
const questionForm = $(selector).find('.question_form');
84+
const questionForm = $(`#${selector}`).find('.question_form');
8585
if (questionForm.length > 0) {
8686
initQuestion(selector);
8787
}

app/services/org/monthly_usage_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def reducer_body(acc, rec, key_target)
3434
else
3535
args = { month: month }
3636
args[key_target] = count
37-
acc[month] = build_model(args)
37+
acc[month] = build_model(**args)
3838
end
3939

4040
acc

0 commit comments

Comments
 (0)