Help Center Live Community

Support => Daily Operations => Topic started by: Where2G0 on November 13, 2008, 09:46:01 AM



Title: Canned messages
Post by: Where2G0 on November 13, 2008, 09:46:01 AM
Everything goes very well with my installtion of HCL 2.  1.  7

Except Canned messages for Public Departments. 

Is there a known fault for this?

Actually the fault is for Private Departments too, so while it works fine for ALL messages, Canned Messages does not appear to work for Departments.

(Yes in test mode I was talking to the correct department)


Title: Re: Canned messages
Post by: zmanit on December 08, 2008, 06:58:58 PM
I am also having a problem with canned message when using the web based app.


Title: Re: Canned messages
Post by: akbarehsan on December 17, 2008, 08:49:15 PM
Same problem here.  I set up a Public Canned Message for a department, but it does not seem to work.  What is the main purpose of canned messages?


Title: Re: Canned messages
Post by: Where2G0 on December 17, 2008, 09:32:48 PM
Canned messages are basically template answers that you can insert without having to type the whole thing out.


Title: Re: Canned messages
Post by: Sylvain on February 02, 2009, 11:01:30 AM
file: /class/canned.  php

line 77

Code:
if ($this->canned['dep']) {
   foreach ($this->canned['dep'] as $key => $val) {
      if (isset($this->canned['dep'][$key]['message'][0])) {
         $this->canned['dep'][$key]['message_js'] = addslashes($this->canned['dep'][$key]['message']);
         /*foreach ($this->canned['dep'][$key]['message'] as $key2 => $val2) {
               $this->canned['dep'][$key]['message'][$key2]['message_js'] = addslashes($this->canned['dep'][$key]['messages'][$key2]['message']);
            }*/
      }
   }
}
if ($this->canned['both']) {
   foreach ($this->canned['both'] as $key => $val) {
      if (isset($this->canned['both'][$key]['message'][0])) {
         $this->canned['both'][$key]['message_js'] = addslashes($this->canned['both'][$key]['message']);
         /*foreach ($this->canned['both'][$key]['messages'] as $key2 => $val2) {
               $this->canned['both'][$key]['messages'][$key2]['message_js'] = addslashes($this->canned['both'][$key]['messages'][$key2]['message']);
         }*/
      }
   }
}


bug fixed. . .  ;D