File tree Expand file tree Collapse file tree
template/object/detail/relation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 297297 );
298298 if ($ relation ->getMany () > 1 ) {
299299 $ data ['relations ' ][$ table ]['rows ' ] = $ data ['item ' ][$ name ];
300- } else {
300+ } else if ( isset ( $ data [ ' item ' ][ $ name ][ $ primary ])) {
301301 $ data ['relations ' ][$ table ]['id ' ] = $ data ['item ' ][$ name ][$ primary ];
302302 $ data ['relations ' ][$ table ]['item ' ] = $ data ['item ' ][$ name ];
303303 }
Original file line number Diff line number Diff line change 22 < table class ="table ">
33 < tbody >
44 {{#each relations}}
5- {{#when many '==' 1}}
6- < tr >
7- < th nowrap > {{singular}}</ th >
8- < td >
9- < a
10- data-do ="panel-mobile-forward "
11- data-on ="click "
12- data-template ="/admin/spa/system/object/{{name}}/detail/{{id}} "
13- href ="javascript:void(0) "
14- >
15- {{{compile suggestion ../item}}}
16- </ a >
17- </ td >
18- </ tr >
5+ {{#when many '< ' 2}}
6+ {{#if id}}
7+ < tr >
8+ < th nowrap > {{singular}}</ th >
9+ < td >
10+ < a
11+ data-do ="panel-mobile-forward "
12+ data-on ="click "
13+ data-template ="/admin/spa/system/object/{{name}}/detail/{{id}} "
14+ href ="javascript:void(0) "
15+ >
16+ {{{compile suggestion ../item}}}
17+ </ a >
18+ </ td >
19+ </ tr >
20+ {{/if}}
1921 {{/when}}
2022 {{/each}}
2123 </ tbody >
You can’t perform that action at this time.
0 commit comments