File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
5
5
This projects adheres to [ Semantic Versioning] ( https://semver.org/ ) and [ Keep a CHANGELOG] ( https://keepachangelog.com/ ) .
6
6
7
+ ## [ 3.0.16]
8
+
9
+ ### Fixed
10
+
11
+ - ` FD_PARAMS_ORIGINAL ` output value.
12
+
7
13
## [ 3.0.15]
8
14
9
15
### Changed
@@ -302,6 +308,7 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
302
308
303
309
- Initial production release.
304
310
311
+ [ 3.0.16 ] : https://github.com/infinum/eightshift-forms-utils/compare/3.0.15...3.0.16
305
312
[ 3.0.15 ] : https://github.com/infinum/eightshift-forms-utils/compare/3.0.14...3.0.15
306
313
[ 3.0.14 ] : https://github.com/infinum/eightshift-forms-utils/compare/3.0.13...3.0.14
307
314
[ 3.0.13 ] : https://github.com/infinum/eightshift-forms-utils/compare/3.0.12...3.0.13
Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ protected function getFormDetailsApi($request): array
510
510
$ output [UtilsConfig::FD_STORAGE ] = \json_decode ($ params ['storage ' ] ?? '' , true ) ?? [];
511
511
512
512
// Set debug original params.
513
- $ output [UtilsConfig::FD_PARAMS_ORIGINAL ] = sanitize_text_field ($ request );
513
+ $ output [UtilsConfig::FD_PARAMS_ORIGINAL ] = $ this -> getParamsOriginal ($ request );
514
514
515
515
return $ output ;
516
516
}
@@ -542,4 +542,16 @@ private function getFormDetailsApiDirectImport(array $params): array
542
542
543
543
return $ output ;
544
544
}
545
+
546
+ /**
547
+ * Get params original.
548
+ *
549
+ * @param mixed $request Data got from endpoint url.
550
+ *
551
+ * @return string
552
+ */
553
+ private function getParamsOriginal ($ request ): string
554
+ {
555
+ return \sanitize_text_field (\wp_json_encode ($ this ->getRequestParams ($ request )));
556
+ }
545
557
}
You can’t perform that action at this time.
0 commit comments