Since update to version 3 CSHS in /edit wont show the correct taxonomy to the given term anymore.

It looks like it only show the LAST taxonomy that uses SCHS as well.

Comments

Rar9 created an issue. See original summary.

br0ken’s picture

Version: 8.x-3.0 » 8.x-3.x-dev

Please provide a detailed explanation as I really don't understand where to start looking at.

rar9’s picture

On my site I use two taxonomie.... Lets call them 1 and 2.

Under managed display --- > form the two taxonomy are using SCHS the same way with settings

Parent: None
Hierarchy depth: None
Required depth: None
Force deepest: No
Save lineage: No
Level labels: None
The "no selection" label: - Please select -

With 2.4 all is good.
With update to 3.0 the Taxonomy 1 Term PARENT is now only showing Taxonomy 2 Terms same as Taxonomy 2.
This breaks all my edit pages as taxonomy 2 terms cant be assigned to Taxonomy 1.

br0ken’s picture

StatusFileSize
new364.5 KB

Still hard to understand.

How many vocabularies selected in the field settings?

rar9’s picture

My content type has 10x Taxonomies.

Two of theses I assigned CSHS with.

The two are same as your screenshot with only one Taxonomy selected.
Only "Users may translate this field" is unticked

rar9’s picture

StatusFileSize
new41.7 KB

I also use CHOSEN module so I get double display of normal and CSHS boxes.

I know how to hide CSHS box via Chosen visibility, but cant hide the default once.

Any hint?

br0ken’s picture

  1. Do you have 2 fields in a content type that uses the CSHS widget?
  2. For the field_a, how many vocabularies selected in the field settings?
  3. For the field_b, how many vocabularies selected in the field settings?
rar9’s picture

Do you have 2 fields in a content type that uses the CSHS widget? -- YES
For the field_a, how many vocabularies selected in the field settings? ONE for field_a
For the field_b, how many vocabularies selected in the field settings? ONE for field_b

But only field_b terms are shown for field_a in EDIT under Managed form Display Product selection

On normal Manage display CSHS 3.0 shows the full hierarchy correctly that one was assigned to the content.

br0ken’s picture

Status: Active » Needs review
StatusFileSize
new2.42 KB

Please try this patch and let me know if it resolves the issue.

rar9’s picture

your patch seams to work. .. Thanks

  • BR0kEN committed 1ce5937 on 8.x-3.x
    Issue #3221710 by BR0kEN, Rar9: Ensure options getting cached on a per-...
br0ken’s picture

Status: Needs review » Fixed

Released as part of 3.3 - https://www.drupal.org/project/cshs/releases/8.x-3.3. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.