// locate item to be deleted
- $fields = ['id', 'uid', 'contact-id', 'deleted'];
+ $fields = ['id', 'uid', 'guid', 'contact-id', 'deleted'];
$item = Item::selectFirstForUser(local_user(), $fields, ['id' => $id]);
if (!DBA::isResult($item)) {
}
// Now check how the user responded to the confirmation query
if (!empty($_REQUEST['canceled'])) {
- goaway('/item/drop/' . $id);
+ goaway('/display/' . $item['guid']);
}
// delete the item
//NOTREACHED
} else {
notice(L10n::t('Permission denied.') . EOL);
- goaway('/item/drop/' . $id);
+ goaway('/display/' . $item['guid']);
//NOTREACHED
}
}