Browse Source

Update 'locallib.php': mais um acerto em locallib.php: function view_iassign_current (): novo trecho comentado //1 para forcar aparecer botao envio comentario

+ function view_iassign_current ():
   * Eliminei codigo 1951-1965/6998: comentei //1 e tirei 2 copias "$output .=... print $output;" com apenas 1 fora
leo 4 years ago
parent
commit
93c2652849
1 changed files with 18 additions and 23 deletions
  1. 18 23
      locallib.php

+ 18 - 23
locallib.php

@@ -5,7 +5,7 @@
  * 
  * Release Notes:
  * - v 4.9.3 2020/01/16
- *   + Several fixes to allow to move activities in a block and improvements in repository
+ *   + Several fixes to allow to move activities in a block and improvements in repository and to appear comment submission button
  *
  * - v 4.9.2 2019/03/13
  *   + Several fixes to allow iLM under HTML stack
@@ -1948,28 +1948,23 @@ class iassign {
             $output .= $ilm->view_iLM($iassign_statement_activity_item, $student_answer, $enderecoPOST, $loadTeacherActivity); // presents iLM
             }
 
-          if ($iassign_statement_activity_item->type_iassign == 3) {
-            $history_comment = '';
-            if ($iassign_submission) {
-              $history_comment = $this->search_comment_submission($iassign_submission->id);
-              }
-
-            if (!empty($history_comment)) {
-              $output .= "\n  <table id='outlinetable' class='generaltable boxaligncenter' cellpadding='5' width='100%'>\n" .
-                "   <tr><th>" . get_string('history_comments', 'iassign') . "</th></tr>\n"; //
-              $output .= $history_comment;
-              $output .= "</table>\n";
-              }
-            $output .= "</form></center>\n";
-            $output .= $OUTPUT->box_end();
-            print $output;
-
-            $only_one_send_button = 1; // avoid put comment frame again (bellow)
-
-          } else { // if ($iassign_statement_activity_item->type_iassign == 3)
-            $output .= $OUTPUT->box_end();
-            print $output;
-            }
+          //1 if ($iassign_statement_activity_item->type_iassign == 3) {
+          //1   $history_comment = '';
+          //1   if ($iassign_submission) {
+          //1     $history_comment = $this->search_comment_submission($iassign_submission->id);
+          //1     }
+          //1   if (!empty($history_comment)) {
+          //1     $output .= "\n  <table id='outlinetable' class='generaltable boxaligncenter' cellpadding='5' width='100%'>\n" .
+          //1       "   <tr><th>" . get_string('history_comments', 'iassign') . "</th></tr>\n"; //
+          //1     $output .= $history_comment;
+          //1     $output .= "</table>\n";
+          //1     }
+          //1   $output .= "</form></center>\n";
+          //1   $only_one_send_button = 1; // avoid put comment frame again (bellow)
+          //1  }
+
+          $output .= $OUTPUT->box_end();
+          print $output;
           } // if ($this->view_iassign)
 
         print $OUTPUT->box_end(); // Box 5 to 'proposition' - close