瀏覽代碼

Fix delete of file from file manager

Laurent Destailleur 4 年之前
父節點
當前提交
ce0fa53cb0
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 2
      htdocs/core/class/html.form.class.php
  2. 1 1
      htdocs/website/index.php

+ 1 - 2
htdocs/core/class/html.form.class.php

@@ -4047,7 +4047,7 @@ class Form
 	{
 		global $langs, $conf;
 
-		$more = '<!-- formconfirm -->';
+		$more = '<!-- formconfirm for page='.dol_escape_htmltag($page).' -->';
 		$formconfirm = '';
 		$inputok = array();
 		$inputko = array();
@@ -4232,7 +4232,6 @@ class Form
                          		});
                          	}
                          	var urljump = pageyes + (pageyes.indexOf("?") < 0 ? "?" : "") + options;
-                         	//alert(urljump);
             				if (pageyes.length > 0) { location.href = urljump; }
                             $(this).dialog("close");
                         },

+ 1 - 1
htdocs/website/index.php

@@ -2433,7 +2433,7 @@ if (!GETPOST('hide_websitemenu'))
 			print '</span>';
 		}
 	} else {
-		print '<input type="hidden" name="website" id="website" value='.$websitekey.'">';
+		print '<input type="hidden" name="website" id="website" value="'.$websitekey.'">';
 	}