From 781c52b351008c3a1dd55a09eb33a9f7935884d0 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 14 Sep 2021 18:26:07 +0300 Subject: [PATCH] feat(console): fix EntriesCopyCommand #543 --- .../core/Console/Commands/Entries/EntriesCopyCommand.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/flextype/core/Console/Commands/Entries/EntriesCopyCommand.php b/src/flextype/core/Console/Commands/Entries/EntriesCopyCommand.php index 33bd2b7a..a4065a82 100644 --- a/src/flextype/core/Console/Commands/Entries/EntriesCopyCommand.php +++ b/src/flextype/core/Console/Commands/Entries/EntriesCopyCommand.php @@ -29,8 +29,6 @@ class EntriesCopyCommand extends Command { $io = new SymfonyStyle($input, $output); - $data = serializers()->json()->decode($input->getOption('data') ?? []); - if (entries()->copy($input->getOption('id'), $input->getOption('newID'))) { $io->success('Entry ' . $input->getOption('id') . ' coppied to ' . $input->getOption('newID')); return Command::SUCCESS;