[chore:] introducing KasPerson.id (refsid remains but isn't used in the mgmt-backend anymore)
This commit is contained in:
@@ -40,7 +40,7 @@ public static class AddressCreator
|
||||
/// </summary>
|
||||
/// <param name="refsid">KasPerson-ID</param>
|
||||
/// <returns>A Markdown string with the address that is maximum seven lines long</returns>
|
||||
public static string? CreateFinalMarkdownString(int refsid)
|
||||
public static string? CreateFinalMarkdownString(int id)
|
||||
{
|
||||
// Maximum seven lines of information
|
||||
|
||||
@@ -50,7 +50,7 @@ public static class AddressCreator
|
||||
var address_line_count = 0;
|
||||
foreach (var set in Settings._instance.addressSets.addresses)
|
||||
{
|
||||
var temp = set.KasPersons.FirstOrDefault(obj => obj.refsid == refsid);
|
||||
var temp = set.KasPersons.FirstOrDefault(obj => obj.id == id);
|
||||
if (temp != null)
|
||||
{
|
||||
address = temp;
|
||||
|
||||
Reference in New Issue
Block a user