Skip to content

Commit

Permalink
Merge pull request #21 from FreePBX/bugfix/cannot-move-voicemail-17
Browse files Browse the repository at this point in the history
can not move voicemail due to translation issues
  • Loading branch information
jissphilip authored Jun 25, 2024
2 parents acb8604 + ad24c9b commit 53b1fdf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Voicemail.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ public function copyMessageByExtensionFolder($msg,$ext,$folder) {
}

foreach($this->vmFolders as $f => $data){
if($data["folder"] == $folder){
if($data["name"] == $folder || $data["folder"] == $folder){
$folder = $f;
}
}
Expand Down Expand Up @@ -1360,7 +1360,7 @@ public function moveMessageByExtensionFolder($msg,$ext,$folder) {
}

foreach($this->vmFolders as $f => $data){
if($data["folder"] == $folder){
if($data["name"] == $folder || $data["folder"] == $folder){
$folder = $f;
}
}
Expand Down Expand Up @@ -1424,9 +1424,9 @@ public function moveMessageByExtensionFolder($msg,$ext,$folder) {
return false;
}

public function rebuildVM($ext){
public function rebuildVM($ext, $folder){
foreach($this->vmFolders as $f => $data){
if(isset($folder) && $data["folder"] == $folder){
if($data["name"] == $folder || $data["folder"] == $folder){
$folder = $f;
}
}
Expand Down Expand Up @@ -1708,7 +1708,7 @@ private function folderCheck($folder) {
*/
private function validFolder($folder) {
foreach($this->vmFolders as $f => $data){
if($data["folder"] == $folder){
if($data["name"] == $folder || $data["folder"] == $folder){
return true;
}
}
Expand Down

0 comments on commit 53b1fdf

Please sign in to comment.