forked from Dolibarr/dolibarr
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '20.0' of [email protected]:Dolibarr/dolibarr.git into 20.0
- Loading branch information
Showing
15 changed files
with
119 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
branches: | ||
- "18.0" | ||
push: | ||
branches: | ||
- "18.0" | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
# GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_TOKEN: ${{ github.token }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install GitHub CLI | ||
run: | | ||
sudo apt update | ||
sudo apt install gh -y | ||
#- name: Authenticate GitHub CLI | ||
# run: | | ||
# echo "GH_TOKEN=$GH_TOKEN" | ||
# gh auth login --with-token <<< "$GH_TOKEN" | ||
|
||
- name: Assign reviewer | ||
env: | ||
#REVIEWER: "eldy,lvessiller-opendsi,rycks" # Remplacez par le nom d'utilisateur GitHub du reviewer | ||
REVIEWER: "rycks" # Remplacez par le nom d'utilisateur GitHub du reviewer | ||
run: | | ||
echo "GH_TOKEN=$GH_TOKEN" | ||
pr_number=$(jq --raw-output .number < $GITHUB_EVENT_PATH) | ||
gh pr edit $pr_number --add-reviewer "$REVIEWER" | ||
continue-on-error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
branches: | ||
- "18.0" | ||
|
||
permissions: write-all | ||
|
||
jobs: | ||
testjob: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Log | ||
run: | | ||
echo "variable org: ${{vars.AAA}}" | ||
echo "env prg: ${{env.AAA}}" | ||
echo "secret org: ${{secrets.BBB}}" | ||
echo "variable repository of orga: ${{vars.CCC}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ | |
* Copyright (C) 2017 Nicolas ZABOURI <[email protected]> | ||
* Copyright (C) 2018-2024 Frédéric France <[email protected]> | ||
* Copyright (C) 2022 Antonin MARCHAL <[email protected]> | ||
* Copyright (C) 2024 MDW <[email protected]> | ||
* Copyright (C) 2024 MDW <[email protected]> | ||
* Copyright (C) 2024 Joachim Kueter <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -2690,7 +2691,11 @@ public function getOptionalsFromPost($extrafieldsobjectkey, $keysuffix = '', $ke | |
if (!GETPOSTISSET($keyprefix."options_".$key.$keysuffix)) { | ||
continue; // Value was not provided, we should not set it. | ||
} | ||
|
||
$value_key = GETPOST($keyprefix."options_".$key.$keysuffix); | ||
if ($value_key === '') { | ||
$value_key = null; | ||
} | ||
} | ||
|
||
$array_options[$keyprefix."options_".$key] = $value_key; // No keyprefix here. keyprefix is used only for read. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters