Skip to content

Commit

Permalink
Merge pull request #72 from smartbooster/remove_parameter_history_legacy
Browse files Browse the repository at this point in the history
Dropped support on Parameter::historyLegacy and also remove it from the ParameterAdmin
  • Loading branch information
mathieu-ducrot authored Sep 2, 2024
2 parents a755d6b + 4860ba1 commit 2f5c52c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG
===================
## v2.8.0 - (2024-09-02)
### Removed
- Dropped support on `Parameter::historyLegacy` and also remove it from the `ParameterAdmin`

## v2.7.0 - (2024-08-28)
### Added
- `docs/tailwind.md` documentation
Expand Down
3 changes: 0 additions & 3 deletions src/Admin/ParameterAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ protected function configureShowFields(ShowMapper $show): void
$show
->add('value', $valueType, ['label' => 'field.label_value'])
->end()
->with('fieldset.label_history', ['class' => 'col-md-12', 'label' => 'fieldset.label_history'])
->add('historyLegacy', null, ['template' => '@SmartSonata/admin/parameter_admin/timeline_history_field.html.twig'])
->end()
;
}

Expand Down
11 changes: 0 additions & 11 deletions src/Entity/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ class Parameter implements ParameterInterface
#[Assert\Length(max: 100)]
private ?string $regex = null;

/**
* @ORM\Column(name="history_legacy", nullable=true)
*/
#[ORM\Column(name: 'history_legacy', nullable: true)]
protected ?array $historyLegacy = null;

/**
* @param mixed $payload
* @Assert\Callback
Expand Down Expand Up @@ -257,9 +251,4 @@ public function setRegex(?string $regex): void
{
$this->regex = $regex;
}

public function getHistoryLegacy(): ?array
{
return $this->historyLegacy;
}
}

0 comments on commit 2f5c52c

Please sign in to comment.