|
|
@@ -111,9 +111,11 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
$customFieldIDs
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->upsert(
|
|
|
+ ->updateOrInsert(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[0] ? $customFieldIDs[0] : '',
|
|
|
+ ),
|
|
|
+ array(
|
|
|
'type' => 'product',
|
|
|
'relid' => $productID,
|
|
|
'fieldname' => 'givenname | Vorname',
|
|
|
@@ -124,9 +126,11 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->upsert(
|
|
|
+ ->updateOrInsert(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[1] ? $customFieldIDs[1] : '',
|
|
|
+ ),
|
|
|
+ array(
|
|
|
'type' => 'product',
|
|
|
'relid' => $productID,
|
|
|
'fieldname' => 'sn | Nachname',
|
|
|
@@ -137,9 +141,11 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->upsert(
|
|
|
+ ->updateOrInsert(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[2] ? $customFieldIDs[2] : '',
|
|
|
+ ),
|
|
|
+ array(
|
|
|
'type' => 'product',
|
|
|
'relid' => $productID,
|
|
|
'fieldname' => 'username | E-Mail Name',
|
|
|
@@ -150,9 +156,11 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->upsert(
|
|
|
+ ->updateOrInsert(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[3] ? $customFieldIDs[3] : '',
|
|
|
+ ),
|
|
|
+ array(
|
|
|
'type' => 'product',
|
|
|
'relid' => $productID,
|
|
|
'fieldname' => 'maildomain | Mail Domaine',
|
|
|
@@ -164,9 +172,11 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->upsert(
|
|
|
+ ->updateOrInsert(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[4] ? $customFieldIDs[4] : '',
|
|
|
+ ),
|
|
|
+ array(
|
|
|
'type' => 'product',
|
|
|
'relid' => $productID,
|
|
|
'fieldname' => 'password | Password',
|
|
|
@@ -177,9 +187,11 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->upsert(
|
|
|
+ ->updateOrInsert(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[5] ? $customFieldIDs[5] : '',
|
|
|
+ ),
|
|
|
+ array(
|
|
|
'type' => 'product',
|
|
|
'relid' => $productID,
|
|
|
'fieldname' => 'pwrepeat | Password wiederholen',
|
|
|
@@ -190,9 +202,11 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->upsert(
|
|
|
+ ->updateOrInsert(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[6] ? $customFieldIDs[6] : '',
|
|
|
+ ),
|
|
|
+ array(
|
|
|
'type' => 'product',
|
|
|
'relid' => $productID,
|
|
|
'fieldname' => 'cos | Class of Service',
|