Fixed error in company category index web page.
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Mon, 10 Dec 2012 23:37:36 +0000 (00:37 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Mon, 10 Dec 2012 23:37:36 +0000 (00:37 +0100)
apps/companyfront/modules/category/templates/_list.php

index 544f335..a54fef0 100644 (file)
@@ -18,7 +18,7 @@
     <tr id="node-<?php echo $company_category->getId()?>" <?php
          // insert hierarchical info
          $node = $company_category->getNode();
-         if ($node->isValidNode() && $node->hasParent() && ($node->getParent()->getId() != '1'))
+         if ($node->isValidNode() && $node->hasParent() && ($node->getParent()->getLevel() != '0'))
       {
        echo 'class="child-of-node-'.$node->getParent()->getId().'"';
       }