Skip to content

Commit

Permalink
Fixed GPM update issue with filtered slugs #1711
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Oct 23, 2017
1 parent ca645ef commit 0668a47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion system/src/Grav/Console/Gpm/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected function serve()
$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;
}

Expand Down Expand Up @@ -276,6 +276,7 @@ private function userInputPackages($only_packages)
$this->output->writeln('');
$this->output->writeln("Packages not found or not requiring updates: <red>" . implode('</red>, <red>',
$ignore) . "</red>");

}
}

Expand Down

0 comments on commit 0668a47

Please sign in to comment.