Permalink
Browse files

Fix setting display column

  • Loading branch information...
1 parent 941bb57 commit 8d3104e99f8b19fd671f75e9e78d85b6772f0ea6 @madhuracj madhuracj committed Dec 9, 2012
Showing with 12 additions and 1 deletion.
  1. +12 −1 pmd_display_field.php
View
@@ -13,6 +13,17 @@
require_once 'libraries/pmd_common.php';
+$post_params = array(
+ 'T',
+ 'F'
+);
+
+foreach ($post_params as $one_post_param) {
+ if (isset($_POST[$one_post_param])) {
+ $GLOBALS[$one_post_param] = $_POST[$one_post_param];
+ }
+}
+
$table = $T;
$display_field = $F;
@@ -46,5 +57,5 @@
header("Content-Type: text/xml; charset=utf-8");
header("Cache-Control: no-cache");
-die("<root act='save_pos' return=__('Modifications have been saved')></root>");
+die("<root act='save_pos' return='" . __('Modifications have been saved') . "'></root>");
?>

0 comments on commit 8d3104e

Please sign in to comment.