From 5dc283b59d822318df8bca5a9b7e15906ef8e527 Mon Sep 17 00:00:00 2001 From: Tom Darneix Date: Thu, 9 Jun 2022 14:26:23 +0200 Subject: [PATCH] merge dev-20.10.x (#11193) * merge dev-20.10.x * Attempt to fix the build --- Jenkinsfile | 1 - www/api/class/centreon_ceip.class.php | 2 +- www/front_src/src/Footer/Links.tsx | 7 +-- www/front_src/src/Resources/Filter/index.tsx | 2 +- .../Resources/Listing/columns/State/index.tsx | 2 +- .../Resources/Listing/columns/Url/index.tsx | 2 +- .../src/Resources/Listing/useListing.ts | 9 ---- www/front_src/src/components/Hook/index.tsx | 13 ++--- .../src/components/ReactRouter/index.tsx | 11 ++-- .../configObject/contact/formContact.php | 53 ++++++++++--------- 10 files changed, 43 insertions(+), 59 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3e7fcfcf227..e2606058add 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -292,5 +292,4 @@ try { "*COMMIT*: by ${source.COMMITTER}\n" + "*INFO*: ${e}" } - } diff --git a/www/api/class/centreon_ceip.class.php b/www/api/class/centreon_ceip.class.php index ddafa758077..46e1a59e7c5 100644 --- a/www/api/class/centreon_ceip.class.php +++ b/www/api/class/centreon_ceip.class.php @@ -229,7 +229,7 @@ private function getLicenseInformation(): array } } } catch (\Exception $exception) { - $this->logger->error($exception->getMessage, ['context' => $exception]); + $this->logger->error($exception->getMessage(), ['context' => $exception]); } return [ diff --git a/www/front_src/src/Footer/Links.tsx b/www/front_src/src/Footer/Links.tsx index 688f61cd1ae..1ef818351f1 100644 --- a/www/front_src/src/Footer/Links.tsx +++ b/www/front_src/src/Footer/Links.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; -import { dec, equals, length, not, pipe } from 'ramda'; +import { equals, not, dec } from 'ramda'; import { Link, makeStyles, Typography } from '@material-ui/core'; @@ -43,10 +43,7 @@ const links: Array = [ }, ]; -const numbersOfLinks = pipe, number, number>( - length, - dec, -)(links); +const numbersOfLinks = dec(links.length); const Links = (): JSX.Element => { const classes = useStyles(); diff --git a/www/front_src/src/Resources/Filter/index.tsx b/www/front_src/src/Resources/Filter/index.tsx index e37af72ab3a..7127b370fa9 100644 --- a/www/front_src/src/Resources/Filter/index.tsx +++ b/www/front_src/src/Resources/Filter/index.tsx @@ -280,7 +280,7 @@ const Filter = (): JSX.Element => { />