Fixed bug [0000116] - & display issue
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 8 Feb 2009 20:43:59 +0000 (20:43 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 8 Feb 2009 20:43:59 +0000 (20:43 +0000)
sales/includes/cart_class.inc

index 8662bf7595313ef7c9470870d21b46b3bc03f751..286ada110dfad40eee5c2133c843f1e84eb6111d 100644 (file)
@@ -222,15 +222,11 @@ class cart
                        $this->trans_no = 0;
                        $this->order_no= $this->trans_type==13 ? key($src->trans_no) : $src->order_no;
                }
-// if we want to save old or derivative document first decode html entities
-// from text fields. For new documents this is not needed.
-               if ($this->trans_no || $this->trans_type != 30) {
-                       $this->reference = @html_entity_decode($this->reference);
-                       $this->Comments = @html_entity_decode($this->Comments);
-                       foreach($this->line_items as $lineno => $line) {
-                               $this->line_items[$lineno]->stock_id = @html_entity_decode($line->stock_id);
-                               $this->line_items[$lineno]->description = @html_entity_decode($line->description);
-                       }
+               $this->reference = @html_entity_decode($this->reference);
+               $this->Comments = @html_entity_decode($this->Comments);
+               foreach($this->line_items as $lineno => $line) {
+                       $this->line_items[$lineno]->stock_id = @html_entity_decode($line->stock_id);
+                       $this->line_items[$lineno]->item_description = @html_entity_decode($line->item_description);
                }
                switch($this->trans_type) {
                        case 10: