Skip to content

Commit

Permalink
Fixed: can't delete record when inside record's edit mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dicarve committed Jun 23, 2010
1 parent c85504a commit 74dfb80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/modules/master_file/doc_language.php
Expand Up @@ -134,7 +134,7 @@
die('<div class="errorBox">'.__('You don\'t have enough privileges to access this area!').'</div>');
}
/* RECORD FORM */
$itemID = $dbs->escape_string(trim(isset($_POST['itemID'])?$_POST['itemID']:''));
$itemID = $dbs->escape_string(trim(isset($_POST['itemID'])?$_POST['itemID']:0));
$rec_q = $dbs->query("SELECT * FROM mst_language WHERE language_id='$itemID'");
$rec_d = $rec_q->fetch_assoc();

Expand Down
3 changes: 3 additions & 0 deletions js/updater.js
Expand Up @@ -39,6 +39,9 @@ Element.addMethods({
var theForm = button.up('form');
theForm.enable();
theForm.select('.makeHidden').invoke('removeClassName', 'makeHidden');
// enable hidden delete form
var deleteForm = $('deleteForm');
if (deleteForm) { deleteForm.enable(); }
});

// change all search form submit behaviour to AJAX
Expand Down

0 comments on commit 74dfb80

Please sign in to comment.