From 94b27136b24b3ce7b7c45c6676f9191874208fad Mon Sep 17 00:00:00 2001 From: willcast Date: Tue, 13 Jan 2004 13:48:40 +0000 Subject: [PATCH] - Solving bug 971: Some default settings override db fields when editing an entry. --- mod/glossary/edit.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = ""; -- 2.39.5