Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
imanghafoori1 committed Nov 7, 2017
1 parent 140aee5 commit 122bcbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/Modules/PrivilegeModule/AdminPrivilegesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ public function getAdd()

public function postAddSave()
{
//$this->cbLoader();

$this->cbInit();
$this->validation();
$this->inputAssignment();

Expand Down Expand Up @@ -103,8 +102,7 @@ public function getEdit($id)

public function postEditSave($id)
{
//$this->cbLoader();

$this->cbInit();
$row = CRUDBooster::first($this->table, $id);

$this->validation($id);
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/CBController.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public function validation($id = null)
$array_input = [];
$componentPath = implode(DIRECTORY_SEPARATOR, ["vendor", "crocodicstudio", "crudbooster", "src", "views", "default", "type_components", ""]);

foreach ($this->data_inputan as $di) {
foreach ($this->form as $di) {
$ai = [];
$name = $di['name'];
$type = $di['type'];
Expand Down Expand Up @@ -586,7 +586,7 @@ public function inputAssignment($id = null)
$hide_form = (request('hide_form')) ? unserialize(request('hide_form')) : [];
$componentPath = implode(DIRECTORY_SEPARATOR, ["vendor", "crocodicstudio", "crudbooster", "src", "views", "default", 'type_components', '']);

foreach ($this->data_inputan as $ro) {
foreach ($this->form as $ro) {
$name = $ro['name'];
$type = $ro['type'] ?: 'text';
$inputdata = request($name);
Expand Down

0 comments on commit 122bcbd

Please sign in to comment.