From 0668a47758abebcbcd00778d71bc9664f35ba9a0 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 23 Oct 2017 16:13:22 -0600 Subject: [PATCH] Fixed GPM update issue with filtered slugs #1711 --- CHANGELOG.md | 2 ++ system/src/Grav/Console/Gpm/UpdateCommand.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d86130cd3..8ff7c5cb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ 1. [](#new) * Added Page `media_order` capability to manually order page media via a page header +1. [](#bugfix) + * Fixed GPM update issue with filtered slugs [#1711](https://github.com/getgrav/grav/issues/1711) # v1.3.7 ## 10/18/2017 diff --git a/system/src/Grav/Console/Gpm/UpdateCommand.php b/system/src/Grav/Console/Gpm/UpdateCommand.php index 6bc8790b3..1fb07134b 100644 --- a/system/src/Grav/Console/Gpm/UpdateCommand.php +++ b/system/src/Grav/Console/Gpm/UpdateCommand.php @@ -182,7 +182,7 @@ class UpdateCommand extends ConsoleCommand $index = 0; foreach ($this->data as $packages) { foreach ($packages as $slug => $package) { - if (count($limit_to) && !array_key_exists($slug, $limit_to)) { + if (count($only_packages) && !array_key_exists($slug, $limit_to)) { continue; } @@ -276,6 +276,7 @@ class UpdateCommand extends ConsoleCommand $this->output->writeln(''); $this->output->writeln("Packages not found or not requiring updates: " . implode(', ', $ignore) . ""); + } }