Skip to content

Commit

Permalink
- Fixing bug regarding the aliases (pointed out by Sho Fukamachi also)
Browse files Browse the repository at this point in the history
  • Loading branch information
willcast committed Nov 27, 2003
1 parent e8a5be2 commit 5d422d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/glossary/edit.php
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 5d422d4

Please sign in to comment.