Removed depreaceted not used method Categorie::get_nb_categories()
This commit is contained in:
parent
be561a63c2
commit
bdf4c0704b
@ -21,7 +21,7 @@ Following changes may create regressions for some external modules, but were nec
|
|||||||
* Removed method fetch_prods() and get_each_prod() not used, keep only get_arbo_each_prod() that is better.
|
* Removed method fetch_prods() and get_each_prod() not used, keep only get_arbo_each_prod() that is better.
|
||||||
* The hook contaxt commcard has been renamed thirdpartycomm
|
* The hook contaxt commcard has been renamed thirdpartycomm
|
||||||
* The hook contaxt thirdpartycard has been renamed thirdpartycontact
|
* The hook contaxt thirdpartycard has been renamed thirdpartycontact
|
||||||
|
* Remove method Categorie:get_nb_categories() that was not used.
|
||||||
|
|
||||||
***** ChangeLog for 7.0.1 compared to 7.0.0 *****
|
***** ChangeLog for 7.0.1 compared to 7.0.0 *****
|
||||||
FIX: #8139 User search does not work if MAIN_USE_OLD_SEARCH_FORM, missing list.php
|
FIX: #8139 User search does not work if MAIN_USE_OLD_SEARCH_FORM, missing list.php
|
||||||
|
|||||||
@ -1207,30 +1207,6 @@ class Categorie extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns total number of categories
|
|
||||||
*
|
|
||||||
* @return int Number of categories
|
|
||||||
* @deprecated function not used ?
|
|
||||||
*/
|
|
||||||
function get_nb_categories()
|
|
||||||
{
|
|
||||||
$sql = "SELECT count(rowid)";
|
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."categorie";
|
|
||||||
$sql.= " WHERE entity IN (".getEntity('category').")";
|
|
||||||
$res = $this->db->query($sql);
|
|
||||||
if ($res)
|
|
||||||
{
|
|
||||||
$res = $this->db->fetch_array($res);
|
|
||||||
return $res[0];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
dol_print_error($this->db);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if no category with same label already exists for this cat's parent or root and for this cat's type
|
* Check if no category with same label already exists for this cat's parent or root and for this cat's type
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user