Skip to content
Snippets Groups Projects
Unverified Commit a87b7aa4 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #31136 from eileenmcnaughton/err

Avoid JS error when user does not have permission to save the template
parents 0efbe888 aaf2b701
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