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
310
Merge Requests
310
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
ebf9c605
Commit
ebf9c605
authored
Jul 28, 2012
by
dawehner
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some wizard issues... again
parent
be280193
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
includes/admin.inc
includes/admin.inc
+2
-1
lib/Drupal/views/Plugins/Type/WizardPluginManager.php
lib/Drupal/views/Plugins/Type/WizardPluginManager.php
+1
-1
No files found.
includes/admin.inc
View file @
ebf9c605
...
...
@@ -706,8 +706,9 @@ function views_ui_nojs_submit($form, &$form_state) {
function
views_ui_wizard_form_validate
(
$form
,
&
$form_state
)
{
$wizard
=
views_ui_get_wizard
(
$form_state
[
'values'
][
'show'
][
'wizard_key'
]);
$manager
=
views_get_plugin_manager
(
'wizard'
);
$definition
=
$manager
->
getDefinition
(
$wizard
[
'plugin_id'
]);
$form_state
[
'wizard'
]
=
$wizard
;
$form_state
[
'wizard_instance'
]
=
$manager
->
createInstance
(
$wizard
[
'plugin_id'
]);
$form_state
[
'wizard_instance'
]
=
$manager
->
createInstance
(
$wizard
[
'plugin_id'
]
,
$definition
);
$errors
=
$form_state
[
'wizard_instance'
]
->
validate
(
$form
,
$form_state
);
foreach
(
$errors
as
$name
=>
$message
)
{
form_set_error
(
$name
,
$message
);
...
...
lib/Drupal/views/Plugins/Type/WizardPluginManager.php
View file @
ebf9c605
...
...
@@ -9,7 +9,7 @@
use
Drupal\Component\Plugin\PluginManagerBase
;
use
Drupal\Component\Plugin\Factory\DefaultFactory
;
use
Drupal\
V
iews\Plugins\Discovery\ViewsDiscovery
;
use
Drupal\
v
iews\Plugins\Discovery\ViewsDiscovery
;
class
WizardPluginManager
extends
PluginManagerBase
{
public
function
__construct
()
{
...
...
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