Voicenumbers can now exist without blocks
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user