Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
webui: introduce determineReplaceDirective method
  • Loading branch information
fbergkemper committed Mar 26, 2020
1 parent f460303 commit 1a3884e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions webui/module/Restore/src/Restore/Form/RestoreForm.php
Expand Up @@ -661,4 +661,20 @@ private function determineWhereDirective($restorejob=null)
return $where;
}

/**
*
*/
private function determineReplaceDirective($restorejob=null)
{
$replace = null;
if(isset($restorejob)) {
foreach($this->restorejobresources as $restorejobresource) {
if($restorejobresource['job'] == $restorejob) {
$replace = $restorejobresource['replace'];
}
}
}
return $replace;
}

}

0 comments on commit 1a3884e

Please sign in to comment.