Only default music on hold with outbound routes

Hello,
FreePBX 2.9.12 asterisk 1.8.15.
We have setup a special moh (not default) in an outboud route with “match pattern and CallerID” _XXXXXXX/_5XXXX
When we use this route for an outbound call and put the call on hold the other party ear the “default” moh, not the one we have setup on the route.
I’ve made a small modification into this file: /var/www/html/admin/modules/core/functions.inc.php
I’ve replaced:

// CID part of the dialplan will not get executed
if (!isset($add_extra_pri1[$fpattern[‘base_pattern’]])) {

with

// CID part of the dialplan will not get executed
if (!isset($add_extra_pri1[$fpattern[‘base_pattern’]]) && !strpos($fpattern[‘dial_pattern’],"/")) {

So now everything seems to be fine. I just wanted to know if this change will not create any other issue.

Thank you,
Best regards
Charlie