Add autocomplete widget for source terms selection

Created on 15 June 2016, about 8 years ago
Updated 3 May 2023, about 1 year ago

Hi!

I'm using Term Merge for a site with about 20000 terms. I started to hit my PHP memory limit recently on line 77 of term_merge.pages.inc where it's looping through the term tree:

foreach ($tree as $v) {
$options[$v->tid] = str_repeat('-', $v->depth) . $v->name . ' [tid: ' . $v->tid . ']';
}

I believe the module tries to build a list of the terms to select from. I understand the challenges of memory constraints working with such a large vocabulary, however in all cases where I need the module, I know the term ids I need to merge and selecting from a list is more a hassle than it's a convenience. Would it be possible to add to the interface of the module just simple text boxes for source term id and target term id instead of select controls?

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Shuler

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024