Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update card.php #30418

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion htdocs/ticket/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,27 @@
// Reopen ticket
if ($object->fetch(GETPOSTINT('id'), GETPOST('track_id', 'alpha')) >= 0) {
$new_status = GETPOSTINT('new_status');

// add support event in trigger

Check warning on line 603 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / phan / Run phan

card.php: PhanPluginWhitespaceTrailing: The first occurrence of trailing whitespace was seen here.

Check failure on line 603 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Whitespace found at end of line
if($new_status == 0)

Check failure on line 604 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Expected 1 space after IF keyword; 0 found

Check failure on line 604 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Whitespace found at end of line
$trig = '_NOT_READ';
elseif($new_status == 1)

Check failure on line 606 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Expected 1 space after ELSEIF keyword; 0 found

Check failure on line 606 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Whitespace found at end of line
$trig = '_READ';
elseif($new_status == 2)

Check failure on line 608 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Expected 1 space after ELSEIF keyword; 0 found

Check failure on line 608 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Whitespace found at end of line
$trig = '_ASSIGNED';
elseif($new_status == 3)

Check failure on line 610 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Expected 1 space after ELSEIF keyword; 0 found

Check failure on line 610 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Whitespace found at end of line
$trig = '_IN_PROGRESS';
elseif($new_status == 5)

Check failure on line 612 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Expected 1 space after ELSEIF keyword; 0 found
$trig = '_NEED_MORE_INFO';
elseif($new_status == 7)
$trig = '_WAITING';
elseif($new_status == 8)
$trig = '_CLOSED';
elseif($new_status == 9)
$trig = '_CANCELED';

//$old_status = $object->status;
$res = $object->setStatut($new_status);
$res = $object->setStatut($new_status, null, '', 'TICKET'.$trig);

Check warning on line 622 in htdocs/ticket/card.php

View workflow job for this annotation

GitHub Actions / phan / Run phan

card.php: PhanPossiblyUndeclaredGlobalVariable: Global variable $trig is possibly undeclared
if ($res) {
$url = 'card.php?track_id=' . $object->track_id;
header("Location: " . $url);
Expand Down
Loading