Skip to content

Commit

Permalink
Hot fix: restore deleted_at to read only columns
Browse files Browse the repository at this point in the history
  • Loading branch information
edusalguero committed Nov 24, 2016
1 parent 64ceef0 commit ea0a714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Abstractor/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public function getEditFields($withForeignKeys = false, $arrayKey = 'main')

protected function getReadOnlyColumns()
{
$columns = [LaravelModel::CREATED_AT, LaravelModel::UPDATED_AT];
$columns = [LaravelModel::CREATED_AT, LaravelModel::UPDATED_AT, 'deleted_at'];

$columns[] = $this->dbal->getModel()->getKeyName();

Expand Down
2 changes: 1 addition & 1 deletion src/Abstractor/Eloquent/Relation/MiniCrud.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function getEditFieldsBase()
$this->readConfig('edit');

if (!empty($columns)) {
$readOnly = [Model::CREATED_AT, Model::UPDATED_AT];
$readOnly = [Model::CREATED_AT, Model::UPDATED_AT, 'deleted_at'];

//Add field for model deletion
$config = [
Expand Down

0 comments on commit ea0a714

Please sign in to comment.