From: willcast Date: Tue, 13 Jan 2004 13:48:40 +0000 (+0000) Subject: - Solving bug 971: X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=94b27136b24b3ce7b7c45c6676f9191874208fad;p=moodle.git - Solving bug 971: Some default settings override db fields when editing an entry. --- diff --git a/mod/glossary/edit.html b/mod/glossary/edit.html index ed7efee937..f3f879121d 100644 --- a/mod/glossary/edit.html +++ b/mod/glossary/edit.html @@ -66,7 +66,7 @@ if (isset($errors)) { } else { echo ''; - if (!empty($newentry->usedynalink) or $CFG->glossary_linkentries) { + if (!empty($newentry->usedynalink) or ($CFG->glossary_linkentries and !isset($newentry->id) ) ) { $selected = "checked"; } else { $selected = ""; @@ -78,7 +78,7 @@ if (isset($errors)) { echo helpbutton("usedynalink", strip_tags(get_string("usedynalink", "glossary")), "glossary"); echo '
'; - if (!empty($newentry->casesensitive) or $CFG->glossary_casesensitive) { + if (!empty($newentry->casesensitive) or ($CFG->glossary_casesensitive and !isset($newentry->id)) ) { $selected = "checked"; } else { $selected = ""; @@ -91,7 +91,7 @@ if (isset($errors)) { echo '
'; - if (!empty($newentry->fullmatch) or $CFG->glossary_fullmatch) { + if (!empty($newentry->fullmatch) or ($CFG->glossary_fullmatch and !isset($newentry->id)) ) { $selected = "checked"; } else { $selected = "";