[Fixed links from Group by output to discrete CDRs Adrian Georgescu **20071213144422 Add setProperties handling to init settings and save settings per customer login based on web actions ] hunk ./cdrlib_ser.phtml 1733 - Display calls + "; + printf("Display calls",$url_calls,$traceField,$traceValue_enc,$traceField); + print " hunk ./debian/changelog 3 + * Fixed links from Group by output to discrete CDRs hunk ./debian/changelog 19 - -- Adrian Georgescu Sun, 09 Dec 2007 04:20:50 +0100 + -- Adrian Georgescu Thu, 13 Dec 2007 15:43:51 +0100 hunk ./provisioning/ngnpro_client_lib.phtml 652 + var $loginProperties = array(); hunk ./provisioning/ngnpro_client_lib.phtml 664 - $this->adminonly = $this->SOAPEngine->adminonly; - $this->reseller = $this->SOAPEngine->reseller; - $this->url = $this->SOAPEngine->url; + $this->adminonly = $this->SOAPEngine->adminonly; + $this->reseller = $this->SOAPEngine->reseller; + $this->customer = $this->SOAPEngine->customer; + $this->impersonate = $this->SOAPEngine->impersonate; + $this->url = $this->SOAPEngine->url; hunk ./provisioning/ngnpro_client_lib.phtml 691 + $this->getLoginProperties(); + hunk ./provisioning/ngnpro_client_lib.phtml 1270 + function getLoginProperties() { + return; + print("getLoginProperties($this->customer)"); + + if ($this->version <= 1 ) return true; + + $this->SOAPEngine->soapclientCustomers->addHeader($this->SOAPEngine->SoapAuth); + $result = $this->SOAPEngine->soapclientCustomers->getProperties(intval($this->customer)); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPEngine->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + return false; + } else { + $this->loginProperties=$result->properties; + } + + print_r($this->loginProperties); + + return true; + } + + function setLoginProperties($properties) { + return; + + print("setLoginProperties($this->customer)"); + + if ($this->version <= 1 ) return true; + + if (!is_array($properties)) return true; + + $filter=array('customer' => intval($this->customer), + 'properties' => $properties + ); + + $this->SOAPEngine->soapclientCustomers->addHeader($this->SOAPEngine->SoapAuth); + $result = $this->SOAPEngine->soapclientCustomers->setProperties($filter); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPEngine->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + return false; + } + + return true; + } + hunk ./provisioning/ngnpro_client_lib.phtml 2236 + $this->setLoginProperties(); +