Skip to content

Commit

Permalink
Merge pull request #1756 from boschresearch/Contrib/fix/rest-api
Browse files Browse the repository at this point in the history
fix(rest): fixed ignoreScm flag when value is false

Reviewed-by: gh@maxhbr.de
Tested-by: mishra.gaurav@siemens.com
  • Loading branch information
GMishx committed Jul 2, 2020
2 parents b4e3a37 + eb60785 commit 2372553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/www/ui/api/Helper/UploadHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function createNewUpload(ServerRequestInterface $request, $folderId,
$uploadedFile = $request->getUploadedFiles();
$body = $request->getParsedBody();

if (! empty($ignoreScm) && ($ignoreScm == "true" || $ignoreScm)) {
if (! empty($ignoreScm) && ($ignoreScm == "true")) {
// If SCM should be ignored
$ignoreScm = 1;
} else {
Expand Down

0 comments on commit 2372553

Please sign in to comment.