Voicenumbers can now exist without blocks

This commit is contained in:
Frank Schubert
2023-06-01 13:55:39 +02:00
parent 7216b3339d
commit bbb2bcd615
4 changed files with 55 additions and 49 deletions
+2
View File
@@ -34,6 +34,8 @@ class Voicenumber extends mfBaseModel {
}
public function afterSave() {
// XXX Move to some ContractConfig add number function
// if contract_id is given, add number to contract
if($this->contract_id) {
if(is_array($this->contract->configvalues) && array_key_exists("voicenumberblock_voicenumber", $this->contract->configvalues)) {