Skip to content

Commit

Permalink
interfaces: fix value lookup in LinkAddressField #8161
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Dec 23, 2024
1 parent 1e78885 commit a18fd9c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,13 @@ public function getValidators()
*/
public function getDescription()
{
if (isset(self::$known_addresses[$this->internalValue])) {
return self::$known_addresses[$this->internalValue];
$value = (string)$this;

if (isset(self::$known_addresses[$value])) {
return self::$known_addresses[$value];
}
return $this->internalValue;

return $value;
}

/**
Expand Down

0 comments on commit a18fd9c

Please sign in to comment.