Skip to content
Snippets Groups Projects
Commit aaf2b701 authored by eileen's avatar eileen
Browse files

Avoid JS error when user does not have permission to save the template

parent 65b0aa08
Branches
Tags
No related merge requests found
......@@ -305,6 +305,9 @@ function convertMetric( value, from, to ) {
}
function showSaveDetails(chkbox) {
if (chkbox === undefined) {
return;
}
var formatSelected = ( document.getElementById('format_id').value > 0 );
var templateSelected = ( document.getElementById('template') != null && document.getElementById('template').value > 0 );
if (chkbox.checked) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment