Added ADBWohneinheit edit, productgroup matchcodeorigin
This commit is contained in:
@@ -87,6 +87,24 @@ class ProductgroupController extends mfBaseController {
|
||||
|
||||
$group_data = [];
|
||||
$group_data['name'] = $name;
|
||||
$group_data["matchcodeorigin"] = null;
|
||||
|
||||
if($r->matchcodeorigin) {
|
||||
switch($r->matchcodeorigin) {
|
||||
case "address":
|
||||
$group_data["matchcodeorigin"] = "address";
|
||||
break;
|
||||
case "domain":
|
||||
$group_data["matchcodeorigin"] = "domain";
|
||||
break;
|
||||
case "terminationaddress":
|
||||
$group_data["matchcodeorigin"] = "terminationaddress";
|
||||
break;
|
||||
case "voicenumber":
|
||||
$group_data["matchcodeorigin"] = "voicenumber";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if($mode == "edit") {
|
||||
$group->update($group_data);
|
||||
|
||||
Reference in New Issue
Block a user