From 74b47e8d0b84b5eaa7f807999fd5ff3d14c0c71f Mon Sep 17 00:00:00 2001 From: Crystal Lai Date: Tue, 14 Jan 2020 15:55:52 +0100 Subject: [PATCH 1/2] Change string to integer comparison for entity.deleted --- gsa/src/web/entity/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsa/src/web/entity/link.js b/gsa/src/web/entity/link.js index 84c14da4a1..702ff1d724 100644 --- a/gsa/src/web/entity/link.js +++ b/gsa/src/web/entity/link.js @@ -45,7 +45,7 @@ const EntityLink = ({capabilities, entity, textOnly, ...props}) => { ); } - if (isDefined(deleted) && deleted !== '0') { + if (isDefined(deleted) && deleted !== 0) { // FIXME is this still used? return {_('Orphan')}; } From f5bb1ff8f535d30ea47a091f4aeccdb8c876500b Mon Sep 17 00:00:00 2001 From: Crystal Lai Date: Tue, 14 Jan 2020 16:10:35 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bea867ec75..f9e3651603 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Lower memory usage when getting a report [#1857](https://github.com/greenbone/gvmd/pull/1857) ### Fixed +- Fix showing resource as orphaned when it's not [#1921](https://github.com/greenbone/gsa/pull/1921) - Fix override new severity being invalid [#1909](https://github.com/greenbone/gsa/pull/1909) - Fixed missing usage_type in getAggregates commands for tasks [#1906](https://github.com/greenbone/gsa/pull/1906) - Fixed undefined policy in create audit dialog [#1847](https://github.com/greenbone/gsa/pull/1847)