Skip to content
Snippets Groups Projects
Commit 6bc1763e authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Attribute_lib: skip useless sql-query

parent 58bb3962
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,8 @@ AttributeUtil.hasRelations = function (pAttributeId)
*/
AttributeUtil.getAttributeType = function (pAttributeId)
{
if (!pAttributeId)
return "";
var attrTypeSelect = "select ATTRIBUTE_TYPE from AB_ATTRIBUTE";
attrTypeSelect = SqlCondition.begin()
.andPrepare("AB_ATTRIBUTE.AB_ATTRIBUTEID", pAttributeId)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment