Browse Source

Making contains file as a hidden option see #5781

Julio Montoya 12 years ago
parent
commit
6f42717656
2 changed files with 2 additions and 2 deletions
  1. 1 1
      main/work/work.lib.php
  2. 1 1
      main/work/work.php

+ 1 - 1
main/work/work.lib.php

@@ -1351,7 +1351,7 @@ function to_javascript_work() {
 					var temp=value.split("\\\");
 				}
 				document.getElementById("file_upload").value=temp[temp.length-1];
-				$("#contains_file_id").attr("checked", true);
+				$("#contains_file_id").attr("value", 1);
 			}
 
 			function checkDate(month, day, year) {

+ 1 - 1
main/work/work.php

@@ -441,7 +441,7 @@ switch ($action) {
 		
         $form->addElement('hidden', 'id', $work_id);
 		if (empty($item_id)) {
-			$form->addElement('checkbox', 'contains_file', null, get_lang('ContainsAfile'), array('id'=>'contains_file_id'));
+			$form->addElement('hidden', 'contains_file', 0, array('id'=>'contains_file_id'));
 		} else {
             $form->addElement('hidden', 'item_id', $item_id);
         }