浏览代码

FIX extrafield css for boolean type

Laurent Destailleur 8 年之前
父节点
当前提交
ec59f08e41
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 4 0
      htdocs/core/class/extrafields.class.php
  2. 1 1
      htdocs/core/tpl/admin_extrafields_view.tpl.php

+ 4 - 0
htdocs/core/class/extrafields.class.php

@@ -728,6 +728,10 @@ class ExtraFields
     		{
     		    $showsize='minwidth400imp';
     		}
+    		elseif ($type == 'boolean')
+    		{
+    		    $showsize='';
+    		}
     		else
     		{
     			if (round($size) < 12)

+ 1 - 1
htdocs/core/tpl/admin_extrafields_view.tpl.php

@@ -34,7 +34,7 @@ print '<br>';
 $extrafields->fetch_name_optionals_label($elementtype);
 
 print '<div class="div-table-responsive">';
-print "<table summary=\"listofattributes\" class=\"noborder\" width=\"100%\">";
+print '<table summary="listofattributes" class="noborder" width="100%">';
 
 print '<tr class="liste_titre">';
 print '<td align="left">'.$langs->trans("Position").'</td>';