Skip to content

Commit

Permalink
fix opened state of folders is not restored
Browse files Browse the repository at this point in the history
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
  • Loading branch information
anoymouserver committed Jan 13, 2021
1 parent d5c47d7 commit 8b3516a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ The format is almost based on [Keep a Changelog](https://keepachangelog.com/en/1

## [Unreleased]

### Fixed
- opened state of folders is not restored (#1040)

## [15.2.0-beta1] - 2021-01-11

### Changed
Expand Down
1 change: 1 addition & 0 deletions lib/Db/Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public function toAPI(): array
[
'id',
'name',
'opened',
'feeds'
]
);
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Db/FolderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ public function testToAPI()
$folder = new Folder();
$folder->setId(3);
$folder->setName('name');
$folder->setOpened(false);

$this->assertEquals(
[
'id' => 3,
'name' => 'name',
'opened' => false,
'feeds' => [],
], $folder->toAPI()
);
Expand Down

0 comments on commit 8b3516a

Please sign in to comment.