Skip to content

Commit

Permalink
Fix table alignment after delete, fix #4
Browse files Browse the repository at this point in the history
Thanks to @CharlesKumar for reporting this issue and providing an example fix
  • Loading branch information
cybrox authored Jul 15, 2018
1 parent c06d33a commit 7262305
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crunchResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public function count(){
*/
public function delete(){
foreach($this->data as $d) unset($this->base->tbdata['data'][$d['__dbid']]);
$this->base->tbdata['data'] = array_values($this->base->tbdata['data']);
$this->base->_saveData();
return true;
}
Expand Down

0 comments on commit 7262305

Please sign in to comment.