display "multiple-parents" asterisk only for multiple non-search parents

This commit is contained in:
zadam
2021-09-02 22:27:35 +02:00
parent 3e5db71652
commit 167d4816fd
3 changed files with 88 additions and 49 deletions

View File

@@ -567,6 +567,7 @@ class Note extends AbstractEntity {
* @returns {Attribute[]} note's "owned" attributes - excluding inherited ones
*/
getOwnedAttributes(type, name) {
// it's a common mistake to include # or ~ into attribute name
if (name && ["#", "~"].includes(name[0])) {
name = name.substr(1);
}