if delete disable clipboard
This commit is contained in:
parent
fbc291c177
commit
b64514c557
1 changed files with 2 additions and 1 deletions
|
@ -409,7 +409,8 @@ class Cli
|
||||||
# @args: id -> the item's id
|
# @args: id -> the item's id
|
||||||
# force -> no resquest a validation
|
# force -> no resquest a validation
|
||||||
def delete(id, force=false)
|
def delete(id, force=false)
|
||||||
item = @mpw.search_by_id(id)
|
@clipboard = false
|
||||||
|
item = @mpw.search_by_id(id)
|
||||||
|
|
||||||
if item.nil?
|
if item.nil?
|
||||||
puts I18n.t('form.delete_item.not_valid', id: id)
|
puts I18n.t('form.delete_item.not_valid', id: id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue