|
@@ -256,7 +256,7 @@ $tabfield[21]= "code,label";
|
|
|
$tabfield[22]= "code,label";
|
|
|
$tabfield[23]= "country_id,country,taux,accountancy_code_sell,accountancy_code_buy,note";
|
|
|
$tabfield[24]= "code,label";
|
|
|
-$tabfield[25]= "label,type_template,position,topic,content";
|
|
|
+$tabfield[25]= "label,type_template,private,position,topic,content";
|
|
|
$tabfield[26]= "code,label,short_label";
|
|
|
$tabfield[27]= "code,libelle";
|
|
|
$tabfield[28]= "code,label,affect,delay,newbymonth,country_id,country";
|
|
@@ -293,7 +293,7 @@ $tabfieldvalue[21]= "code,label";
|
|
|
$tabfieldvalue[22]= "code,label";
|
|
|
$tabfieldvalue[23]= "country,taux,accountancy_code_sell,accountancy_code_buy,note";
|
|
|
$tabfieldvalue[24]= "code,label";
|
|
|
-$tabfieldvalue[25]= "label,type_template,position,topic,content";
|
|
|
+$tabfieldvalue[25]= "label,type_template,private,position,topic,content";
|
|
|
$tabfieldvalue[26]= "code,label,short_label";
|
|
|
$tabfieldvalue[27]= "code,libelle";
|
|
|
$tabfieldvalue[28]= "code,label,affect,delay,newbymonth,country";
|
|
@@ -644,7 +644,7 @@ if (GETPOST('actionadd') || GETPOST('actionmodify'))
|
|
|
$ok=0;
|
|
|
setEventMessages($langs->transnoentities("ErrorFieldMustBeANumeric",$langs->transnoentities("Code")), null, 'errors');
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// Clean some parameters
|
|
|
if (isset($_POST["localtax1"]) && empty($_POST["localtax1"])) $_POST["localtax1"]='0'; // If empty, we force to 0
|
|
|
if (isset($_POST["localtax2"]) && empty($_POST["localtax2"])) $_POST["localtax2"]='0'; // If empty, we force to 0
|
|
@@ -1409,7 +1409,7 @@ if ($id)
|
|
|
if (in_array($obj->code, array('AC_OTH','AC_OTH_AUTO')) || in_array($obj->type, array('systemauto'))) { $canbedisabled=0; $canbedisabled = 0; }
|
|
|
$canbemodified=$iserasable;
|
|
|
if ($obj->code == 'RECEP') $canbemodified=1;
|
|
|
-
|
|
|
+
|
|
|
$url = $_SERVER["PHP_SELF"].'?'.($page?'page='.$page.'&':'').'sortfield='.$sortfield.'&sortorder='.$sortorder.'&rowid='.(! empty($obj->rowid)?$obj->rowid:(! empty($obj->code)?$obj->code:'')).'&code='.(! empty($obj->code)?urlencode($obj->code):'').'&id='.$id.'&';
|
|
|
|
|
|
// Favorite
|