File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import RelationEditorContainer from '../../containers/record/RelationEditorConta
1010import SearchToRelateModalContainer from '../../containers/search/SearchToRelateModalContainer' ;
1111import { canCreate , canRelate } from '../../helpers/permissionHelpers' ;
1212import styles from '../../../styles/cspace-ui/RelatedRecordBrowser.css' ;
13+ import { deriveSearchType } from '../../helpers/searchHelpers' ;
1314
1415const propTypes = {
1516 cloneCsid : PropTypes . string ,
@@ -386,6 +387,12 @@ export default class RelatedRecordBrowser extends Component {
386387
387388 const className = isSidebarOpen ? styles . normal : styles . full ;
388389
390+ const { listType } = deriveSearchType (
391+ config ,
392+ this . getRelatedRecordPanelName ( ) ,
393+ Immutable . fromJS ( { recordType : relatedRecordType } ) ,
394+ ) ;
395+
389396 // TODO: Vary the name of the RelatedRecordPanelContainer depending on the object record type?
390397 // This would allow selected items to be remembered when switching back and forth between
391398 // secondary tabs, instead of being cleared.
@@ -401,6 +408,7 @@ export default class RelatedRecordBrowser extends Component {
401408 />
402409 </ header >
403410 < RelatedRecordPanelContainer
411+ listType = { listType }
404412 collapsed = { false }
405413 csid = { csid }
406414 config = { config }
You can’t perform that action at this time.
0 commit comments