Fixed Voicenumber and Updated Voiceplan
This commit is contained in:
@@ -37,4 +37,23 @@ class Voiceplandestination extends mfBaseModel {
|
||||
return $this->$name;
|
||||
}
|
||||
|
||||
public function __clone() {
|
||||
$me = new User;
|
||||
$me->loadMe();
|
||||
|
||||
$old_id = $this->id;
|
||||
$this->id = null;
|
||||
$this->voiceplan = null;
|
||||
|
||||
|
||||
$this->create_by = $me->id;
|
||||
$this->edit_by = $me->id;
|
||||
|
||||
$this->create = null;
|
||||
$this->edit = null;
|
||||
$this->saved = 0;
|
||||
$this->mode = "new";
|
||||
$this->_old_data = new StdClass();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -155,7 +155,7 @@ class VoiceplandestinationModel {
|
||||
if(array_key_exists("prefix", $filter)) {
|
||||
$prefix = $db->escape($filter['prefix']);
|
||||
if($prefix) {
|
||||
$where .= " AND prefix like '%$prefix%'";
|
||||
$where .= " AND prefix like '$prefix'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user