Skip to content

Commit

Permalink
Fix relationship parent table name is repeated in browser info panel
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Nov 28, 2022
1 parent 31bf477 commit 3eabb26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/browser/qgsinbuiltdataitemproviders.cpp
Expand Up @@ -2325,7 +2325,7 @@ QString QgsRelationshipDetailsWidget::htmlMetadata( const QgsWeakRelation &relat

if ( relation.cardinality() != Qgis::RelationshipCardinality::ManyToMany )
{
metadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "Tables" ) + QStringLiteral( "</td><td>" ) + relation.referencedLayerName()
metadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "Tables" ) + QStringLiteral( "</td><td>" )
+ QStringLiteral( "%1 → %2" ).arg( relation.referencedLayerName(),
relation.referencingLayerName() ) + QStringLiteral( "</td></tr>\n" );

Expand All @@ -2344,7 +2344,7 @@ QString QgsRelationshipDetailsWidget::htmlMetadata( const QgsWeakRelation &relat
}
else
{
metadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "Tables" ) + QStringLiteral( "</td><td>" ) + relation.referencedLayerName()
metadata += QStringLiteral( "<tr><td class=\"highlight\">" ) + tr( "Tables" ) + QStringLiteral( "</td><td>" )
+ QStringLiteral( "%1 → %2 → %3" ).arg( relation.referencedLayerName(),
relation.mappingTableName(),
relation.referencingLayerName() ) + QStringLiteral( "</td></tr>\n" );
Expand Down

0 comments on commit 3eabb26

Please sign in to comment.