Skip to content

Commit 057f6e9

Browse files
authored
Merge pull request #345 from andreasferber/master
Fix LookupEditor AJAX new entry rendering for bootstrap based templates
2 parents ead86fa + b3e9316 commit 057f6e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

meta/LookupTable.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ protected function renderEmptyResult() {
5656
* @return string
5757
*/
5858
public function getFirstRow() {
59+
// XHTML renderer doesn't like calling ->tablerow_open() without
60+
// ->table_open() first, since it leaves some internal variables unset.
61+
// Therefore, call ->table_open() and throw away the generated HTML.
62+
$this->renderer->table_open();
63+
$this->renderer->doc = '';
64+
5965
$this->renderResultRow(0, $this->result[0]);
6066
return $this->renderer->doc;
6167
}

0 commit comments

Comments
 (0)