Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
225
Merge Requests
225
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
80e4c781
Commit
80e4c781
authored
Sep 21, 2012
by
damiankloip
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1791070
by damiankloip: Fixed Disabled views get enabled when saving through the UI.
parent
ccc66002
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
lib/Drupal/views/Tests/UI/DefaultViewsTest.php
lib/Drupal/views/Tests/UI/DefaultViewsTest.php
+9
-0
views_ui.module
views_ui.module
+1
-1
No files found.
lib/Drupal/views/Tests/UI/DefaultViewsTest.php
View file @
80e4c781
...
@@ -55,6 +55,15 @@ function testDefaultViews() {
...
@@ -55,6 +55,15 @@ function testDefaultViews() {
$this
->
assertResponse
(
200
);
$this
->
assertResponse
(
200
);
$this
->
assertText
(
$new_title
);
$this
->
assertText
(
$new_title
);
// Save another view in the UI.
$this
->
drupalPost
(
'admin/structure/views/nojs/display/archive/page/title'
,
array
(),
t
(
'Apply'
));
$this
->
drupalPost
(
'admin/structure/views/view/archive/page'
,
array
(),
t
(
'Save'
));
// Check there is an enable link. i.e. The view has not been enabled after
// editing.
$this
->
drupalGet
(
'admin/structure/views'
);
$this
->
assertLinkByHref
(
'admin/structure/views/view/archive/enable'
);
// It should now be possible to revert the view. Do that, and make sure the
// It should now be possible to revert the view. Do that, and make sure the
// view title we added above no longer is displayed.
// view title we added above no longer is displayed.
// $this->drupalGet('admin/structure/views');
// $this->drupalGet('admin/structure/views');
...
...
views_ui.module
View file @
80e4c781
...
@@ -308,7 +308,7 @@ function views_ui_cache_load($name) {
...
@@ -308,7 +308,7 @@ function views_ui_cache_load($name) {
else
{
else
{
// Keep disabled/enabled status real.
// Keep disabled/enabled status real.
if
(
$original_view
)
{
if
(
$original_view
)
{
$view
->
disabled
=
!
empty
(
$original_view
->
disabled
)
;
$view
->
disabled
=
$original_view
->
disabled
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment