From 0dbcfd69c24291093575d0f97ff8b28eb6c01199 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Thu, 2 Jun 2016 18:03:09 +0300 Subject: [PATCH] MT#20235 Allow to add fw filename to the latest firmware url Change-Id: I0b23e14aa01fcf27925d71aab8789a3a59814731 --- lib/NGCP/Panel/Controller/Device.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/NGCP/Panel/Controller/Device.pm b/lib/NGCP/Panel/Controller/Device.pm index 1a481abf8a..76332c5857 100644 --- a/lib/NGCP/Panel/Controller/Device.pm +++ b/lib/NGCP/Panel/Controller/Device.pm @@ -1898,6 +1898,7 @@ sub dev_field_firmware_next :Chained('dev_field_firmware_version_base') :PathPar $q = $c->req->params->{q}; } if(defined $q) { + $q=~s/\.rom$//i; #yealink v > 80 needs filename at the end of the link. $rs = $rs->search({ version => { 'like' => $q . '%' }, }); @@ -1929,6 +1930,7 @@ sub dev_field_firmware_latest :Chained('dev_field_firmware_version_base') :PathP $q = $c->req->params->{q}; } if(defined $q) { + $q=~s/\.rom$//i; #yealink v > 80 needs filename at the end of the link. $rs = $rs->search({ version => { 'like' => $q . '%' }, });