removed call to deprecated getRequest() method
minor #3977 [WCM] removed call to deprecated getRequest() method (Baptouuuu)

This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #3977).

Discussion
----------

[WCM] removed call to deprecated getRequest() method

| Q                  | A
| ---------------- | ---
| Doc fix?        | yes
| New docs?   | no
| Applies to     | 2.5+
| Fixed tickets |

Commits
-------

0fbb1e0 removed call to deprecated getRequest() method