Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
visual_editor
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
visual_editor
Commits
c66d2715
Commit
c66d2715
authored
8 months ago
by
Jesus Manuel Olivas
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3464748
: Published field is no longer on the form
parent
782ce84d
No related branches found
No related tags found
1 merge request
!23
✨ Issue #3464748: Published field is no longer on the form
Pipeline
#238638
passed with warnings
8 months ago
Stage: build
Stage: validate
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/NodeEditForm.php
+5
-0
5 additions, 0 deletions
src/Form/NodeEditForm.php
with
5 additions
and
0 deletions
src/Form/NodeEditForm.php
+
5
−
0
View file @
c66d2715
...
...
@@ -30,6 +30,11 @@ class NodeEditForm extends NodeForm {
// Build the form.
$form
=
parent
::
buildForm
(
$form
,
$form_state
);
// Add status aka published field to meta fieldset.
$form
[
'meta'
][
'status'
]
=
$form
[
'status'
];
$form
[
'meta'
][
'status'
][
'#group'
]
=
NULL
;
$form
[
'meta'
][
'status'
][
'#weight'
]
=
0
;
// Hide Preview button.
$form
[
'actions'
][
'preview'
][
'#access'
]
=
$this
->
isLatestRevision
();
// Hide Delete button.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment