Clear checkbox selections when form is processed
[squirrelmail.git] / src / right_main.php
index 1072572b0a5635c032bb5ee84c152d9df258c9cb..05ad7eb4dc771b3f8c96e6631f4c405e6fbc764c 100644 (file)
@@ -236,6 +236,8 @@ if (!sqgetGlobalVar('align',$align,SQ_SESSION)) {
 $sError = handleMessageListForm($imapConnection,$aMailbox);
 if ($sError) {
    $note = $sError;
 $sError = handleMessageListForm($imapConnection,$aMailbox);
 if ($sError) {
    $note = $sError;
+} else if (sqgetGlobalVar('REQUEST_METHOD', $req_method, SQ_SERVER) && $req_method == 'POST') {
+   $preselected = array(); // clear pre-checked checkboxes when action succeeded
 }
 
 
 }