From b53989bb9db8a553a7b64b412ce5abda3be0f493 Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 25 Feb 2025 13:32:36 +0100 Subject: [PATCH 1/6] Update LCSCProvider.php: fix error in query string (#873) Fix typo in query string 'prodctCode' -> 'productCode' introduced in Commit 80527e3 --- src/Services/InfoProviderSystem/Providers/LCSCProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/InfoProviderSystem/Providers/LCSCProvider.php b/src/Services/InfoProviderSystem/Providers/LCSCProvider.php index 375c6f4d..d903a8dd 100755 --- a/src/Services/InfoProviderSystem/Providers/LCSCProvider.php +++ b/src/Services/InfoProviderSystem/Providers/LCSCProvider.php @@ -76,7 +76,7 @@ class LCSCProvider implements InfoProviderInterface 'Cookie' => new Cookie('currencyCode', $this->currency) ], 'query' => [ - 'prductCode' => $id, + 'productCode' => $id, ], ]); From eae1fcecab31769fa187a0900a1caa3f8fa51ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Wed, 26 Feb 2025 12:27:11 +0100 Subject: [PATCH 2/6] New translations security.en.xlf (Chinese Simplified) (#870) --- translations/security.zh.xlf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/translations/security.zh.xlf b/translations/security.zh.xlf index 61b236ae..58fbb26f 100644 --- a/translations/security.zh.xlf +++ b/translations/security.zh.xlf @@ -1,17 +1,23 @@ - + user.login_error.user_disabled 账户已被禁用。请联系管理员 - + saml.error.cannot_login_local_user_per_saml 无法通过 SSO 以本地用户身份登录。请使用本地用户密码 + + + saml.error.cannot_login_saml_user_locally + 无法使用本地身份验证器以SAML用户身份登录!请改用SSO登录 + + From 5a1a6e92170a3e00f1cffe787ed252e1d80d8f49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Wed, 26 Feb 2025 12:28:07 +0100 Subject: [PATCH 3/6] Bumped version 1.16.1 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 15b989e3..41c11ffb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.0 +1.16.1 From bcc7547d6f15822ab19dc5ea14cfd3cb1f85b7bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 2 Mar 2025 21:14:42 +0100 Subject: [PATCH 4/6] New Crowdin updates (#874) * New translations messages.en.xlf (Italian) * New translations messages.en.xlf (English) --- translations/messages.en.xlf | 2 +- translations/messages.it.xlf | 56 +++++++++++++++++++++++++----------- 2 files changed, 40 insertions(+), 18 deletions(-) diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index 276c49f4..304062bc 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -9304,7 +9304,7 @@ Element 3 part.filter.orderdetails_count - Number of orderdetails + Number of order details diff --git a/translations/messages.it.xlf b/translations/messages.it.xlf index 4a4659f2..65e543d5 100644 --- a/translations/messages.it.xlf +++ b/translations/messages.it.xlf @@ -780,18 +780,10 @@ L'utente dovrà configurare nuovamente tutti i metodi di autenticazione a due fa Eliminare - - - Part-DB1\templates\AdminPages\_attachments.html.twig:41 - Part-DB1\templates\Parts\edit\_attachments.html.twig:38 - Part-DB1\templates\Parts\info\_attachments_info.html.twig:35 - Part-DB1\src\DataTables\AttachmentDataTable.php:159 - Part-DB1\templates\Parts\edit\_attachments.html.twig:38 - Part-DB1\src\DataTables\AttachmentDataTable.php:159 - + - attachment.external - Esterno + attachment.external_only + Solo allegato esterno @@ -806,7 +798,7 @@ L'utente dovrà configurare nuovamente tutti i metodi di autenticazione a due fa Miniatura dell'allegato - + Part-DB1\templates\AdminPages\_attachments.html.twig:52 Part-DB1\templates\Parts\edit\_attachments.html.twig:50 @@ -816,8 +808,8 @@ L'utente dovrà configurare nuovamente tutti i metodi di autenticazione a due fa Part-DB1\templates\Parts\info\_attachments_info.html.twig:45 - attachment.view - Visualizzare + attachment.view_local + Visualizza la copia locale @@ -2119,14 +2111,14 @@ I sub elementi saranno spostati verso l'alto. Immagine di anteprima - + Part-DB1\templates\Parts\info\_attachments_info.html.twig:67 Part-DB1\templates\Parts\info\_attachments_info.html.twig:50 - attachment.download - Download + attachment.download_local + Scarica la copia in locale @@ -12324,5 +12316,35 @@ Notare che non è possibile impersonare un utente disattivato. Quando si prova a Profilo salvato! + + + entity.export.flash.error.no_entities + Non ci sono entità da esportare! + + + + + attachment.table.internal_file + File interno + + + + + attachment.table.external_link + Link esterno + + + + + attachment.view_external.view_at + Visualizza da %host% + + + + + attachment.view_external + Visualizza la versione esterna + + From 616aad6403e4f8235e4ee90cb6de9041b0c4d99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 7 Mar 2025 11:29:58 +0100 Subject: [PATCH 5/6] Added hint to docker install docs, that you need to run sudo with -E command That should prevent isssues like in #882 and #871 --- docs/installation/installation_docker.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/installation/installation_docker.md b/docs/installation/installation_docker.md index 5d357ae5..cb24e6c1 100644 --- a/docs/installation/installation_docker.md +++ b/docs/installation/installation_docker.md @@ -201,6 +201,10 @@ You also have to create the database as described above in step 4. You can run the console commands described in README by executing `docker exec --user=www-data -it partdb bin/console [command]` +{: .warning } +> If you run a root console inside the container, and wanna execute commands on the webserver behalf, be sure to use `sudo -E` command (with the `-E` flag) to preserve env variables from the current shell. +> Otherwise Part-DB console might use the wrong configuration to execute commands. + ## Troubleshooting *Login is not possible. Login page is just reloading and no error message is shown or something like "CSFR token invalid"*: From c48f77864816fc15d581c6d68aea306a9eb54ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 7 Mar 2025 11:30:50 +0100 Subject: [PATCH 6/6] Update console_commands.md --- docs/usage/console_commands.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/usage/console_commands.md b/docs/usage/console_commands.md index 00431a34..d23f10c4 100644 --- a/docs/usage/console_commands.md +++ b/docs/usage/console_commands.md @@ -25,6 +25,12 @@ is named `partdb`, you can execute the command `php bin/console cache:clear` wit docker exec --user=www-data partdb php bin/console cache:clear ``` +{: .warning } +> If you run a root console inside the docker container, and wanna execute commands on the webserver behalf, be sure to use `sudo -E` command (with the `-E` flag) to preserve env variables from the current shell. +> Otherwise Part-DB console might use the wrong configuration to execute commands. + +## Troubleshooting + ## User management commands * `php bin/console partdb:users:list`: List all users of this Part-DB instance @@ -64,4 +70,4 @@ docker exec --user=www-data partdb php bin/console cache:clear ## Database commands * `php bin/console doctrine:migrations:migrate`: Migrate the database to the latest version -* `php bin/console doctrine:migrations:up-to-date`: Check if the database is up-to-date \ No newline at end of file +* `php bin/console doctrine:migrations:up-to-date`: Check if the database is up-to-date