From 08fcaede888a1d3d83debdb4f8c561fff341f4a6 Mon Sep 17 00:00:00 2001 From: Benjamin Ooghe-Tabanou Date: Wed, 11 Jan 2023 15:29:36 +0100 Subject: [PATCH] ensure sigma's protected node attributes such as type or color can not be overwritten by user defined tags (closes #470) --- hyphe_frontend/app/components/webentitiesNetworkWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyphe_frontend/app/components/webentitiesNetworkWidget.js b/hyphe_frontend/app/components/webentitiesNetworkWidget.js index f4048dd3..7246f810 100644 --- a/hyphe_frontend/app/components/webentitiesNetworkWidget.js +++ b/hyphe_frontend/app/components/webentitiesNetworkWidget.js @@ -645,7 +645,7 @@ angular.module('hyphe.webentitiesNetworkWidgetComponent', []) } catch(e) { tagVal = '' } - g.setNodeAttribute(nid, tagCat.trim(), tagVal); + g.setNodeAttribute(nid, "tag_" + tagCat.trim(), tagVal); } // g.removeNodeAttribute(nid, "tags"); })