Jelajahi Sumber

[svn r18063] fix: default index checkbox is independent of fckeditor type full, and from edit or create

Marco Villegas 16 tahun lalu
induk
melakukan
5b0b78fbe5
1 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 5 4
      main/exercice/exercise.class.php

+ 5 - 4
main/exercice/exercise.class.php

@@ -25,7 +25,7 @@
 *	Exercise class: This class allows to instantiate an object of type Exercise
 *	@package dokeos.exercise
 * 	@author Olivier Brouckaert
-* 	@version $Id: exercise.class.php 18005 2009-01-26 18:00:46Z juliomontoya $
+* 	@version $Id: exercise.class.php 18063 2009-01-29 00:07:20Z marvil07 $
 */
 
 
@@ -941,9 +941,6 @@ class Exercise
 			    $defaults['start_time'] = ($this->start_time!='0000-00-00 00:00:00')? $this -> start_time : date('Y-m-d 12:00:00');
 	            $defaults['end_time'] = ($this->end_time!='0000-00-00 00:00:00')?$this -> end_time : date('Y-m-d 12:00:00');
 	            
-	            if (api_get_setting('search_enabled') === 'true') {
-            		$defaults['index_document'] = 'checked="checked"';
-        }					
 			}
 			else
 			{
@@ -961,6 +958,10 @@ class Exercise
 			$defaults['exerciseDescription'] = $this -> selectDescription();				
 		}       
 
+        if (api_get_setting('search_enabled') === 'true') {
+            $defaults['index_document'] = 'checked="checked"';
+        }
+
 		$form -> setDefaults($defaults);
 	}