- Remove spaces and special characters from the name Softkey

This commit is contained in:
PhantomVl 2019-05-29 20:49:50 +03:00
parent d3aa9b7388
commit 898240e1d4

View file

@ -803,7 +803,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
break; break;
case 'updateSoftKey': case 'updateSoftKey':
if (!empty($request['id'])) { if (!empty($request['id'])) {
$id_name = $request['id']; $id_name = preg_replace('/\s/', '', $request['id']);
$this->sccp_conf_init[$id_name]['type'] = "softkeyset"; $this->sccp_conf_init[$id_name]['type'] = "softkeyset";
foreach ($this->extconfigs->getextConfig('keyset') as $keyl => $vall) { foreach ($this->extconfigs->getextConfig('keyset') as $keyl => $vall) {
if (!empty($request[$keyl])) { if (!empty($request[$keyl])) {