PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
← All changes | includes/Core/Integration/Integrations.php +12 -1 3.2.13.3.1 View file →
@@ -9,8 +9,9 @@
9 9
10 10 use BitCode\BitForm\Core\Database\FormEntryModel;
11 11 use BitCode\BitForm\Core\Database\FormModel;
12 12 use BitCode\BitForm\Core\Util\ApiResponse;
13 +use BitCode\BitForm\Core\Util\IpTool;
13 14 use BitCode\BitForm\Core\Util\Log;
14 15 use BitCode\BitForm\Core\Util\SmartTags;
15 16 use BitCode\BitForm\Core\Util\Utilities;
16 17 /**
@@ -297,9 +298,11 @@
297 298 wp_json_encode($appConfig->details) : $appConfig->details;
298 299 }
299 300 $connectionCategory = 'connected_integration_apps';
300 301
301 - $integrationHandler = new IntegrationHandler(0);
302 + // saveIntegration reads user_details['id'|'ip'|'time']; without them the insert
303 + // raises null-offset warnings and stores null user_id/created_at
304 + $integrationHandler = new IntegrationHandler(0, IpTool::getUserDetail());
302 305
303 306 return $integrationHandler->saveIntegration($connectionName, $connectionType, $connectionDetails, $connectionCategory);
304 307 }
305 308
@@ -333,6 +336,14 @@
333 336 {
334 337 $integrationHandler = new IntegrationHandler(0);
335 338
336 339 return $integrationHandler->deleteIntegration($appId);
340 + }
341 +
342 + public function renameConnectedApp($appId, $name)
343 + {
344 + // User details carry the time renameConnectedApp() stamps into updated_at.
345 + $integrationHandler = new IntegrationHandler(0, IpTool::getUserDetail());
346 +
347 + return $integrationHandler->renameConnectedApp($appId, $name);
337 348 }
338 349 }