|
|
@@ -111,7 +111,7 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
$customFieldIDs
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->updateOrCreate(
|
|
|
+ ->insertOrUpdate(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[0] ? $customFieldIDs[0] : '',
|
|
|
'type' => 'product',
|
|
|
@@ -124,7 +124,7 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->updateOrCreate(
|
|
|
+ ->insertOrUpdate(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[1] ? $customFieldIDs[1] : '',
|
|
|
'type' => 'product',
|
|
|
@@ -137,7 +137,7 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->updateOrCreate(
|
|
|
+ ->insertOrUpdate(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[2] ? $customFieldIDs[2] : '',
|
|
|
'type' => 'product',
|
|
|
@@ -150,7 +150,7 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->updateOrCreate(
|
|
|
+ ->insertOrUpdate(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[3] ? $customFieldIDs[3] : '',
|
|
|
'type' => 'product',
|
|
|
@@ -164,7 +164,7 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->updateOrCreate(
|
|
|
+ ->insertOrUpdate(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[4] ? $customFieldIDs[4] : '',
|
|
|
'type' => 'product',
|
|
|
@@ -177,7 +177,7 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->updateOrCreate(
|
|
|
+ ->insertOrUpdate(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[5] ? $customFieldIDs[5] : '',
|
|
|
'type' => 'product',
|
|
|
@@ -190,7 +190,7 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
)
|
|
|
);
|
|
|
Capsule::table('tblcustomfields')
|
|
|
- ->updateOrCreate(
|
|
|
+ ->insertOrUpdate(
|
|
|
array(
|
|
|
'id' => $customFieldIDs[6] ? $customFieldIDs[6] : '',
|
|
|
'type' => 'product',
|