diff --git a/src/tab.js b/src/tab.js index 4613b861f5..1e3e9af11e 100644 --- a/src/tab.js +++ b/src/tab.js @@ -291,7 +291,10 @@ this.set_name(attributes.name || ''); this.el.append(screen.screen_container.el); if (attributes.res_id) { - screen.group.load([attributes.res_id]); + if (!jQuery.isArray(attributes.res_id)) { + attributes.res_id = [attributes.res_id]; + } + screen.group.load(attributes.res_id); screen.set_current_record( screen.group.get(attributes.res_id)); screen.display();