Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Descriptive object labelling: created object doesn't take parents labels on create, but does after edit/save #3

Open
thomas- opened this issue Jun 19, 2018 · 0 comments

Comments

@thomas-
Copy link

thomas- commented Jun 19, 2018

Not sure if this is a known thing or not, but proves to be a little bit of an issue when setting up new selfLabelled child objects.

I've provided some test schema and code for reproduction, but worth noting I had the same issue/outcome using Research Institutes in haplo_research_manager (ie, adding a department to a faculty)

type test:type:test-one as TestOne
    title: Test one
    search-name: test one
    attribute dc:attribute:title [sort=1000]
    attribute std:attribute:parent [sort=1100]
    attribute std:attribute:notes [sort=1600]
    render-type book
    render-icon: E210,1,f
    render-category 0
    create-position common
P.implementService("haplo:descriptive_object_labelling:setup", function(type) {
    type(T.TestOne, {
        selfLabelling: true
    });
});

Repro:

  1. Create object of type
  2. Create object of same type, use object created above as A.Parent
  3. New object will have labels: T.TestOne and itself but not the Parent object created in 1)
  4. Edit object, Save without changes, parent will now be included
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant