Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate and sort tag names in Advanced DHCP Options selector. #1078

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

pmilazzo
Copy link
Contributor

Description

Previously, multiple definitions for the same tag name resulted in duplicate entries in the tag selector for Advanced DHCP Options. Now, duplicates are removed and the tag names appear in alphabetical order in the tag selector.

@aanon4
Copy link
Contributor

aanon4 commented Jan 22, 2024

Nothing wrong with this per say, but you could create the second table as you create the first, only inserting into the second if it's not already in the hash? Would save you a loop iteration.

@pmilazzo
Copy link
Contributor Author

pmilazzo commented Jan 22, 2024

Oh, I see what you mean. Yes, I can do that.
What I also didn't realize was that the table only needs to be built once and reused for each row. Now it is.

@aanon4 aanon4 merged commit 3531629 into aredn:main Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants