mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 02:36:42 +02:00
refactor: harmonize redirects after submitting forms
go back to form after submitting an edit form
This commit is contained in:
parent
6e9451a110
commit
d0cb964b0f
36 changed files with 179 additions and 57 deletions
|
|
@ -21,7 +21,7 @@ class DropdownMenu extends Component
|
|||
|
||||
public function setItems(string $value): void
|
||||
{
|
||||
$this->items = json_decode(html_entity_decode($value), true);
|
||||
$this->items = json_decode(htmlspecialchars_decode($value), true);
|
||||
}
|
||||
|
||||
public function render(): string
|
||||
|
|
@ -39,7 +39,7 @@ class DropdownMenu extends Component
|
|||
]);
|
||||
break;
|
||||
case 'html':
|
||||
$menuItems .= html_entity_decode($item['content']);
|
||||
$menuItems .= htmlspecialchars_decode($item['content']);
|
||||
break;
|
||||
case 'separator':
|
||||
$menuItems .= '<hr class="my-2 border border-subtle">';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue