Skip to content

Commit fe758e0

Browse files
bugfix: insert empty cell at end if checkboxes are at end; fixes #9
1 parent ef42e12 commit fe758e0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

includes/ProgressTableProcessor.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,11 @@ private function addCheckboxCellToRow( DOMElement $row, int $rowIndex ): void {
375375
if ( $shouldSkipCheckbox ) {
376376
$emptyCell = $this->dom->createElement( 'td' );
377377
$emptyCell->setAttribute( 'class', self::CHECKBOX_CELL_CLASS );
378-
$row->insertBefore( $emptyCell, $row->firstChild );
378+
if ( $this->checkboxLocation === 'last' ) {
379+
$row->appendChild( $emptyCell );
380+
} else {
381+
$row->insertBefore( $emptyCell, $row->firstChild );
382+
}
379383
return;
380384
}
381385

0 commit comments

Comments
 (0)