fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [8977] fixed display of   html char


From: Erik Holm-Larsen
Subject: [Fmsystem-commits] [8977] fixed display of   html char
Date: Wed, 14 Mar 2012 12:22:14 +0000

Revision: 8977
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8977
Author:   erikhl
Date:     2012-03-14 12:22:13 +0000 (Wed, 14 Mar 2012)
Log Message:
-----------
fixed display of   html char

Modified Paths:
--------------
    trunk/controller/inc/class.uicontrol_item.inc.php

Modified: trunk/controller/inc/class.uicontrol_item.inc.php
===================================================================
--- trunk/controller/inc/class.uicontrol_item.inc.php   2012-03-14 07:49:14 UTC 
(rev 8976)
+++ trunk/controller/inc/class.uicontrol_item.inc.php   2012-03-14 12:22:13 UTC 
(rev 8977)
@@ -242,11 +242,15 @@
                        {
                                if(isset($control_item)) // Add new values to 
the control item
                                {
+                                       $what_to_do_txt = 
phpgw::get_var('what_to_do','html');
+                                       $what_to_do_txt = str_replace(" ", 
" ", $what_to_do_txt);
+                                       $how_to_do_txt = 
phpgw::get_var('how_to_do','html');
+                                       $how_to_do_txt = str_replace(" ", 
" ", $how_to_do_txt);
                                        
$control_item->set_title(phpgw::get_var('title'));
                                        
$control_item->set_required(phpgw::get_var('required') == 'on' ? true : false);
                                        
$control_item->set_type(phpgw::get_var('measurement') == 'on' ? 
'control_item_type_2' : 'control_item_type_1');
-                                       $control_item->set_what_to_do( 
phpgw::get_var('what_to_do','html') );
-                                       $control_item->set_how_to_do( 
phpgw::get_var('how_to_do','html') );
+                                       $control_item->set_what_to_do( 
$what_to_do_txt );
+                                       $control_item->set_how_to_do( 
$how_to_do_txt );
                                        $control_item->set_control_group_id( 
phpgw::get_var('control_group') );
                                        $control_item->set_control_area_id( 
phpgw::get_var('control_area') );
 
@@ -362,6 +366,12 @@
                                                );
                                        }
                                }
+                               
+                               /*
+                                * hack to fix display of   char 
+                                */
+                               
$control_item->set_what_to_do(str_replace(" ", " 
",$control_item->get_what_to_do()));
+                               
$control_item->set_how_to_do(str_replace(' ', ' ', 
$control_item->get_how_to_do()));
 
                                $control_item_array = $control_item->toArray();
 
@@ -508,6 +518,12 @@
                                $category = 
execMethod('phpgwapi.categories.return_single', 
$control_item->get_control_area_id());
                                
$control_item->set_control_area_name($category[0]['name']);
                                
+                               /*
+                                * hack to fix display of   char 
+                                */
+                               
$control_item->set_what_to_do(str_replace(" ", " 
",$control_item->get_what_to_do()));
+                               
$control_item->set_how_to_do(str_replace(' ', ' ', 
$control_item->get_how_to_do()));
+                               
                                $control_item_array = $control_item->toArray();
 
                                $data = array




reply via email to

[Prev in Thread] Current Thread [Next in Thread]