Permalink
Browse files

Update access rules on panes forms.

  • Loading branch information...
1 parent 42e52e0 commit fd40677a2e8fa004261cb4cbfe9069dd21b3328f @merlinofchaos merlinofchaos committed Oct 7, 2010
Showing with 3 additions and 4 deletions.
  1. +3 −4 plugins/display_renderers/panels_renderer_editor.class.php
@@ -1280,7 +1280,7 @@ function ajax_access_add_test($pid = NULL) {
);
$output = ctools_modal_form_wrapper('panels_edit_add_access_test_form', $form_state);
- if (empty($form_state['executed'])) {
+ if (!empty($form_state['executed'])) {
// Set up the plugin in cache
$plugin = ctools_get_access_plugin($form_state['values']['type']);
$this->cache->new_plugin = ctools_access_new_test($plugin);
@@ -1290,8 +1290,7 @@ function ajax_access_add_test($pid = NULL) {
return $this->ajax_access_configure_test($pid, 'add');
}
- print ajax_render($output);
- ajax_footer();
+ $this->commands = $output;
}
/**
@@ -1830,7 +1829,7 @@ function panels_edit_configure_access_test_form($form, &$form_state) {
$form['settings'] = array('#tree' => TRUE);
if ($function = ctools_plugin_get_function($plugin, 'settings form')) {
- $function($form, $form_state, $test['settings']);
+ $form = $function($form, $form_state, $test['settings']);
}
$form['not'] = array(

0 comments on commit fd40677

Please sign in to comment.