Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
remove array filter cause bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fherryfherry committed Mar 22, 2017
1 parent d869480 commit ac7410a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/CBController.php
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ public function postAddSave() {
$this->hook_before_add($this->arr);

$this->arr[$this->primary_key] = $id = CRUDBooster::newId($this->table);
$this->arr=array_filter($this->arr); // null array fix
// $this->arr=array_filter($this->arr); // null array fix = failed
DB::table($this->table)->insert($this->arr);

$this->hook_after_add($this->arr[$this->primary_key]);
Expand Down

0 comments on commit ac7410a

Please sign in to comment.