Added the new parameter to the delete function.
This commit is contained in:
parent
708ddf2b02
commit
54136f3a74
6 changed files with 10 additions and 10 deletions
|
@ -877,7 +877,7 @@ function item_content(App $a) {
|
|||
$o = '';
|
||||
if (($a->argc == 3) && ($a->argv[1] === 'drop') && intval($a->argv[2])) {
|
||||
if (is_ajax()) {
|
||||
$o = Item::deleteById($a->argv[2]);
|
||||
$o = Item::deleteById($a->argv[2], PRIORITY_HIGH, local_user());
|
||||
} else {
|
||||
$o = drop_item($a->argv[2]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue