Permalink
Browse files

- Solving bug 971:

   Some default settings override db fields when editing an entry.
  • Loading branch information...
1 parent 4aac7b8 commit 94b27136b24b3ce7b7c45c6676f9191874208fad willcast committed Jan 13, 2004
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/glossary/edit.html
@@ -66,7 +66,7 @@
} 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 @@
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 @@
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 = "";

0 comments on commit 94b2713

Please sign in to comment.