Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jsonapi_extras
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
jsonapi_extras
Merge requests
!18
Issue
#3308511
: Deprecated function: htmlspecialchars(): Passing null to parameter
#1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3308511
: Deprecated function: htmlspecialchars(): Passing null to parameter
#1
issue/jsonapi_extras-3308511:3308511
into
8.x-3.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Mingsong
requested to merge
issue/jsonapi_extras-3308511:3308511
into
8.x-3.x
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
8.x-3.x
8.x-3.x (base)
and
latest version
latest version
495263e6
1 commit,
2 years ago
1 file
+
7
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Conflict: This file was modified in both the source and target branches. Ask someone with write access to resolve it.
src/Form/JsonapiResourceConfigForm.php
+
7
−
8
Options
@@ -203,18 +203,17 @@ class JsonapiResourceConfigForm extends EntityForm {
public
function
save
(
array
$form
,
FormStateInterface
$form_state
)
{
$resource_config
=
$this
->
entity
;
$status
=
$resource_config
->
save
();
$type
=
$resource_config
->
get
(
'resourceType'
)
??
''
;
switch
(
$status
)
{
case
SAVED_NEW
:
$this
->
messenger
()
->
addStatus
(
$this
->
t
(
'Created the %label JSON:API Resource overwrites.'
,
[
'%label'
=>
$resource_config
->
id
(),
]));
case
SAVED_NEW
:
$this
->
messenger
()
->
addStatus
(
$this
->
t
(
'Created the %type JSON:API Resource overwrites.'
,
[
'%type'
=>
$type
]));
break
;
default
:
$this
->
messenger
()
->
addStatus
(
$this
->
t
(
'Saved the %label JSON:API Resource overwrites.'
,
[
'%label'
=>
$resource_config
->
id
(),
]));
default
:
$this
->
messenger
()
->
addStatus
(
$this
->
t
(
'Saved the %type JSON:API Resource overwrites.'
,
[
'%type'
=>
$type
]));
}
$form_state
->
setRedirectUrl
(
$resource_config
->
toUrl
(
'collection'
));
}
Loading