Commit 810f541f authored by Curtis Adam's avatar Curtis Adam
Browse files

Make sure that the sortType is always a number

parent b899736a
......@@ -99,6 +99,9 @@ export function saveCardset() {
let error = false;
let errorMessage = "<ul>";
let sortType = $("input[name='sortType']:checked").val();
if (sortType === undefined) {
sortType = 0;
}
if ($('#setName').val() === "") {
error = true;
errorMessage += "<li>" + TAPi18n.__('modal-dialog.name') + "</li>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment