diff --git a/admin/adminAppQueue.php b/admin/adminAppQueue.php index 2e41bd9..e78baa9 100644 --- a/admin/adminAppQueue.php +++ b/admin/adminAppQueue.php @@ -46,7 +46,7 @@ function outputSearchTableForDuplicateFlagging($currentAppId, $hResult) //display row echo "\n"; /* map the merging of the current app to the app we are displaying in the table */ - echo " ".html_ahref($ob->appName,"adminAppQueue.php?sub=duplicate&appId=".$currentAppId."&appIdMergeTo=".$ob->appId)."\n"; + echo " ".html_ahref($ob->appName,"adminAppQueue.php?sub=duplicate&apptype=application&appId=".$currentAppId."&appIdMergeTo=".$ob->appId)."\n"; echo " $y->versions versions  \n"; echo "\n\n"; @@ -172,9 +172,10 @@ if ($_REQUEST['sub']) /* move this version submission under the existing app */ $oVersion->iAppId = $_REQUEST['appIdMergeTo']; $oVersion->update(); - + /* delete the appId that is the duplicate */ - $oApp->delete(); + $oAppDelete = new Application($oApp->iAppId); + $oAppDelete->delete(); } /* redirect back to the main page */