Skip to content

Conversation

@MyvTsv
Copy link

@MyvTsv MyvTsv commented May 20, 2025

Changes description

If a target that was linked to an issue had a pending validation request, the issue would not have the status “validation pending” but the status “assigned”.

Checklist

Please check if your PR fulfills the following specifications:

  • Tests for the changes have been added
  • Docs have been added/updated

References

Closes !37694

@MyvTsv MyvTsv self-assigned this May 20, 2025
@MyvTsv MyvTsv requested review from Rom1-B and stonebuzz May 20, 2025 15:08
@btry
Copy link
Collaborator

btry commented May 20, 2025

This change requires to check the sync issues sql query. It very likely needs to reflect it.

@stonebuzz
Copy link
Contributor

If I'm not mistaken, it's already the case.

new QueryExpression("IF(`$ticketTable`.`global_validation` IN ('" . CommonITILValidation::NONE . "', '" . CommonITILValidation::ACCEPTED . "'),
   `$ticketTable`.`status`,
   IF(`$ticketTable`.`status` IN ('" . CommonITILObject::SOLVED . "', '" . CommonITILObject::CLOSED . "'),
      `$ticketTable`.`status`,
      IF(`$ticketTable`.`global_validation` = '" . CommonITILValidation::WAITING . "',
         '" . PluginFormcreatorFormAnswer::STATUS_WAITING . "',
         '" . PluginFormcreatorFormAnswer::STATUS_REFUSED . "'
      )
   )
) AS `status`"),

@btry
Copy link
Collaborator

btry commented May 21, 2025

yes, it looks good.

@MyvTsv MyvTsv requested a review from Rom1-B May 21, 2025 14:03
@stonebuzz
Copy link
Contributor

waiting customer validation

@MyvTsv
Copy link
Author

MyvTsv commented May 22, 2025

It's good for customer

@stonebuzz stonebuzz merged commit cfc9a69 into pluginsGLPI:support/2.13.0 May 22, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants