Admin UI: hidden:true doesn't work for inherited Relationship fields
See original GitHub issueExpected behavior
Fields, declared with hidden:true
should be invisible
Actual behavior
I have two collections, say Base
and Child
.
Both has the same field somefield
. But for Base
visibility is not set, and for Child
this field is hidden
. But I see the field in the admin UI for both collections.
Steps to reproduce the behavior
Create models with the following fields:
Base.add({
somefield: { type: Types.Relationship, ref: 'Somefield' },
});
Child.add({
somefield: { type: Types.Relationship, ref: 'Somefield', hidden: true, noedit: true },
});
Open admin UI
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Admin UI: cannot override inherited field with hidden:true #4973
When inheriting from a parent list, some fields may need to be hidden in some of the children. This appears to be the...
Read more >How to hide some fields in django-admin? - Stack Overflow
In Django 1.8 exclude = ('fieldname',) does works with admin.ModelAdmin so one does not have to inherit from InlineModelAdmin anymore. – Dmitriy ...
Read more >Overriding ServiceNow Form View Inheritance
This script runs on load of a particular table (Change request for example) and manipulates the form to remove any trace of a...
Read more >Sharing Inheritance Limits and Considerations - Salesforce Help
Here are some things to consider when working with sharing inheritance. Sharing Inheritance Limits Sharing inheritance can be applied from a supported obj....
Read more >visibility - CSS: Cascading Style Sheets - MDN Web Docs
The visibility CSS property shows or hides an element without changing the layout of a document. The property can also hide rows or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@webteckie my problem - Admin UI, not DB, DB works good. UI looks as not expected.
This issue is no longer an issue therefore I am closing. I’ve been adding tests using nightmare e2e framework and can see its no longer an issue https://github.com/keystonejs/keystone/commit/73d144ebe825f761e5afdd2e5b91ab95bd01408c