diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc
index 5a3cecedea1eb7e1cd27033fe9a2762531217ff1..4cb3ccd04b8c9c39f39132ede58b5342fc3bce90 100644 (file)
Dialog display
****************/
- $useBase = $this->DivListApplication->selectedRelease;
/* Check if there is a snapshot dialog open */
- if($str = $this->showSnapshotDialog($this->DivListApplication->selectedBase,$useBase)){
+ $base = $this->DivListApplication->selectedBase;
+ if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases($base))){
return($str);
}
}
+ /* Return departments, that will be included within snapshot detection */
+ function get_used_snapshot_bases(){
+ if($this->DivListApplication->selectedRelease == "main"){
+ return(array($this->DivListApplication->selectedBase));
+ }else{
+ return(array($this->DivListApplication->selectedRelease));
+ }
+ }
+
+
function reload()
{
$this->applications= array();