]> git.mjollnir.org Git - moodle.git/commitdiff
- Solving bug 971:
authorwillcast <willcast>
Tue, 13 Jan 2004 13:48:40 +0000 (13:48 +0000)
committerwillcast <willcast>
Tue, 13 Jan 2004 13:48:40 +0000 (13:48 +0000)
   Some default settings override db fields when editing an entry.

mod/glossary/edit.html

index ed7efee937ef8692ad848b2dd956a117d8c1a353..f3f879121d25402606ba8abef69eba816035b312 100644 (file)
@@ -66,7 +66,7 @@ if (isset($errors)) {
     } else {
         echo '<script>var items = [\'casesensitive\',\'fullmatch\'];</script>';
 
-        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 '<br />';
 
-        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 '<br />';
 
 
-        if (!empty($newentry->fullmatch) or $CFG->glossary_fullmatch) {
+        if (!empty($newentry->fullmatch) or ($CFG->glossary_fullmatch and !isset($newentry->id)) ) {
             $selected = "checked";
         } else {
             $selected = "";