Skip to content
Snippets Groups Projects
Commit e25fc5d6 authored by qusai Taha's avatar qusai Taha
Browse files

3441714:fix duplicate last term in overview page

parent 398192b2
No related branches found
No related tags found
1 merge request!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...
...@@ -197,7 +197,7 @@ public function buildForm(array $form, FormStateInterface $form_state, Vocabular ...@@ -197,7 +197,7 @@ public function buildForm(array $form, FormStateInterface $form_state, Vocabular
$back_step = $back_step ?? 0; $back_step = $back_step ?? 0;
// Continue rendering the tree until we reach the a new root item. // Continue rendering the tree until we reach the a new root item.
if ($page_entries >= $page_increment + $back_step + 1 && $raw_term->depth == 0 && $root_entries > 1) { if ($page_entries >= $page_increment + $back_step && $raw_term->depth == 0 && $root_entries > 1) {
$complete_tree = TRUE; $complete_tree = TRUE;
// This new item at the root level is the first item on the next page. // This new item at the root level is the first item on the next page.
$after_entries++; $after_entries++;
......
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