Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Fixing bug regarding the aliases (pointed out by Sho Fukamachi also)

  • Loading branch information...
commit 5d422d42845cbeeed0f87b23e814611213c02133 1 parent e8a5be2
willcast authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/glossary/edit.php
View
5 mod/glossary/edit.php
@@ -135,6 +135,7 @@
if (! $newentry->id = insert_record("glossary_entries", $newentry)) {
error("Could not insert this new entry");
} else {
+ $e = $newentry->id;
$newentry->attachment = $_FILES["attachment"];
if ($newfilename = glossary_add_attachment($newentry, $newentry->attachment)) {
$newentry->attachment = $newfilename;
@@ -153,10 +154,10 @@
delete_records("glossary_alias","entryid",$e);
if ( isset($form->categories) ) {
- $newcategory->entryid = $newentry->id;
+ $newcategory->entryid = $e;
foreach ($form->categories as $category) {
if ( $category > 0 ) {
- $newcategory->categoryid =$category;
+ $newcategory->categoryid = $category;
insert_record("glossary_entries_categories",$newcategory);
} else {
break;
Please sign in to comment.
Something went wrong with that request. Please try again.