diff --git a/application/Espo/Services/Layout.php b/application/Espo/Services/Layout.php index fc7e6b16c1..e263368d27 100644 --- a/application/Espo/Services/Layout.php +++ b/application/Espo/Services/Layout.php @@ -255,7 +255,7 @@ class Layout extends \Espo\Core\Services\Base if (!is_object($item)) continue; $item = clone $item; - $item->order = 5 + 0.001 * $i; + $item->index = 5 + 0.001 * $i; if (!isset($item->name)) continue; diff --git a/client/src/views/record/detail-bottom.js b/client/src/views/record/detail-bottom.js index 81ad9c1c71..e597ae2b49 100644 --- a/client/src/views/record/detail-bottom.js +++ b/client/src/views/record/detail-bottom.js @@ -49,6 +49,14 @@ define('views/record/detail-bottom', 'views/record/panels-container', function ( this.getMetadata().get(['clientDefs', scope, 'bottomPanels', this.type]) || this.panelList || [] ); + this.panelList.forEach(function (item) { + if ('index' in item) { + item.index = item.index; + } else if ('order' in item) { + item.index = item.order; + } + }); + if (this.streamPanel && this.getMetadata().get(['scopes', scope, 'stream'])) { this.setupStreamPanel(); } @@ -73,7 +81,7 @@ define('views/record/detail-bottom', 'views/record/panels-container', function ( view: this.getMetadata().get(['clientDefs', this.scope, 'streamPanelView']) || 'views/stream/panel', sticked: true, hidden: !streamAllowed, - order: 2, + index: 2, }); if (!streamAllowed) {