Closed (outdated)
Project:
Taxonomy Manager
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2009 at 21:01 UTC
Updated:
12 Feb 2020 at 15:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jsobiecki commentedI added patch which describes changes made in _taxonomy_manager_tree_get_item
Comment #2
mh86 commentedHi!
If you want to limit terms, you can configure it under Administration > Site Configuration > Taxonomy Manager - Pager Count (or you can directly set the variable 'taxonomy_manager_pager_tree_page_size' with variable_set('taxonomy_manager_pager_tree_page_size', 50)).
Your patch looks good, but before I can commit it, I have to check which module alter these queries and might change the tree in the taxonomy manager admin interface (e.g. if its still working if i18n is enabled).
Comment #3
jsobiecki commentedHi,
Thanks for response :)
I didn't want limit amount of terms per page. I wanted to limit set of terms according to some conditions (in this case, assignment of term to domain, made by domain_taxonomy module).
It is good approach to make sure if this wont break admin interface, but take notice on this fragment of code in _taxonomy_manager_tree_get_item:
if $pager parameter is set to FALSE, you use taxonomy_get_tree function. And this function uses db_rewrite_sql. So currently, _taxonomy_manager_tree_get_item might act differently according to $pager parameter value.
Comment #4
ivnish