From 0b2c242b073a27e3454d574263a2714ef5982ec4 Mon Sep 17 00:00:00 2001
From: Mingsong Hu <mingsonghu@Mingsongs-MBP.gateway>
Date: Mon, 9 Sep 2019 09:43:54 +1000
Subject: [PATCH] Remove the hardcode parent and depth from the url

---
 src/Form/HmOverviewTerms.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Form/HmOverviewTerms.php b/src/Form/HmOverviewTerms.php
index cee009f..0ff7b3a 100644
--- a/src/Form/HmOverviewTerms.php
+++ b/src/Form/HmOverviewTerms.php
@@ -54,11 +54,11 @@ class HmOverviewTerms extends OverviewTerms {
                 // Get current language.
                 $language = \Drupal::languageManager()->getCurrentLanguage();
                 if ($language->isDefault()) {
-                  $source_url = $base_path . 'admin/hierarchy_manager/taxonomy/json/' . $vid . '?parent=0&depth=1&token=' . $token;
+                  $source_url = $base_path . 'admin/hierarchy_manager/taxonomy/json/' . $vid . '?token=' . $token;
                   $update_url = $base_path . 'admin/hierarchy_manager/taxonomy/update/' . $vid . '?token=' . $token;
                 }
                 else {
-                  $source_url = $base_path . $language->getId() . '/admin/hierarchy_manager/taxonomy/json/' . $vid . '?parent=0&depth=1&token=' . $token;
+                  $source_url = $base_path . $language->getId() . '/admin/hierarchy_manager/taxonomy/json/' . $vid . '?token=' . $token;
                   $update_url = $base_path . $language->getId() . '/admin/hierarchy_manager/taxonomy/update/' . $vid . '?token=' . $token;
                 }
                 return $instance->getForm($source_url, $update_url);
-- 
GitLab