Fixed Voicenumber and Updated Voiceplan

This commit is contained in:
Frank Schubert
2023-11-14 20:15:06 +01:00
parent 003ab67145
commit cc4a751407
20 changed files with 232 additions and 662 deletions

View File

@@ -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();
}
}

View File

@@ -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'";
}
}