|
|
@@ -97,10 +97,17 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
|
|
|
{
|
|
|
$whmcs = App::self();
|
|
|
$productID = $whmcs->get_req_var('id');
|
|
|
- Capsule::table('tblcustomfields')
|
|
|
- ->where('relid', '=', $productID)
|
|
|
- ->delete();
|
|
|
try {
|
|
|
+ $customFields = Capsule::table('tblcustomfields')
|
|
|
+ ->where('relid', '=', $productID)
|
|
|
+ ->select();
|
|
|
+ logModuleCall(
|
|
|
+ 'zimbrasingle',
|
|
|
+ __FUNCTION__,
|
|
|
+ $productID,
|
|
|
+ "Debug",
|
|
|
+ $customFields
|
|
|
+ );
|
|
|
Capsule::table('tblcustomfields')
|
|
|
->insert(
|
|
|
array(
|