Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ebf9c605
Commit
ebf9c605
authored
Jul 28, 2012
by
Daniel Wehner
Committed by
Tim Plunkett
Oct 21, 2012
Browse files
fix some wizard issues... again
parent
be280193
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment