summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorduckz2013-01-12 09:32:31 (GMT)
committer duckz2013-01-12 09:32:31 (GMT)
commitef27770bca9504ea1903f15f280cac426839f7d6 (patch)
treec90cbf9c8cb7f062e6a86fb87320156b07524ac3
parenteac05184f580f34de5f736157ed8717ac22bc34f (diff)
bug fix for http://drupal.org/node/18834607.x-1.0-beta16
-rw-r--r--sigmaone/vtcore/plugins/regionarea/regionarea.admin4
1 files changed, 4 insertions, 0 deletions
diff --git a/sigmaone/vtcore/plugins/regionarea/regionarea.admin b/sigmaone/vtcore/plugins/regionarea/regionarea.admin
index 95eb1b7..407df04 100644
--- a/sigmaone/vtcore/plugins/regionarea/regionarea.admin
+++ b/sigmaone/vtcore/plugins/regionarea/regionarea.admin
@@ -457,6 +457,10 @@ function regionarea_submit(&$form, &$form_state) {
$file = basename($file);
$file = str_replace('.layout', '', $file);
$form_state['values']['layouts'][$file] = $data;
+
+ // Bug fix http://drupal.org/node/1883460
+ $form_state['storage']['old_value']['layouts'][$file] = $data;
+
drupal_set_message(t('@file saved to database.', array('@file' => $file)));
}