diff --git a/dev/skeletons/build_class_from_table.php b/dev/skeletons/build_class_from_table.php
index 33c83bcc356..65b6c023b89 100755
--- a/dev/skeletons/build_class_from_table.php
+++ b/dev/skeletons/build_class_from_table.php
@@ -561,7 +561,7 @@ foreach ($skeletonfiles as $skeletonfile => $outfile)
{
if ($prop['field'] != 'rowid' && $prop['field'] != 'id' && ! $prop['istime'])
{
- $varprop.="if (\$search_".$prop['field']." != '') \$params.= '&search_".$prop['field']."='.urlencode(\$search_".$prop['field']."\n);";
+ $varprop.="if (\$search_".$prop['field']." != '') \$params.= '&search_".$prop['field']."='.urlencode(\$search_".$prop['field'].");\n";
}
}
$targetcontent=preg_replace('/'.preg_quote("if (\$search_field1 != '') \$params.= '&search_field1='.urlencode(\$search_field1);",'/').'/', $varprop, $targetcontent);
@@ -619,6 +619,32 @@ foreach ($skeletonfiles as $skeletonfile => $outfile)
$targetcontent=preg_replace('/'.preg_quote("if (! empty(\$arrayfields['t.field1']['checked'])) print '
'.\$obj->field1.' | ';",'/').'/', $varprop, $targetcontent);
$targetcontent=preg_replace('/'.preg_quote("if (! empty(\$arrayfields['t.field2']['checked'])) print ''.\$obj->field2.' | ';",'/').'/', '', $targetcontent);
+ // LIST_OF_TD_LABEL_FIELDS_CREATE and EDIT - List of td for card view
+ $varprop="\n";
+ $cleanparam='';
+ foreach($property as $key => $prop)
+ {
+ if ($prop['field'] != 'rowid' && $prop['field'] != 'id' && ! $prop['istime'])
+ {
+ $varprop.="print '| '.\$langs->trans(\"Field".$prop['field']."\").' | |
';\n";
+ }
+ }
+ $targetcontent=preg_replace('/LIST_OF_TD_LABEL_FIELDS_CREATE/', $varprop, $targetcontent);
+ $targetcontent=preg_replace('/LIST_OF_TD_LABEL_FIELDS_EDIT/', $varprop, $targetcontent);
+
+ // LIST_OF_TD_LABEL_FIELDS_VIEW - List of td for card view
+ $varprop="\n";
+ $cleanparam='';
+ foreach($property as $key => $prop)
+ {
+ if ($prop['field'] != 'rowid' && $prop['field'] != 'id' && ! $prop['istime'])
+ {
+ $varprop.="print '| '.\$langs->trans(\"Field".$prop['field']."\").' | ".$prop['field']." |
';\n";
+ }
+ }
+ $targetcontent=preg_replace('/LIST_OF_TD_LABEL_FIELDS_VIEW/', $varprop, $targetcontent);
+
+
// Build file
$fp=fopen($outfile,"w");
if ($fp)
diff --git a/dev/skeletons/skeleton_card.php b/dev/skeletons/skeleton_card.php
index 8b643ff3f6c..9cf6f26440c 100644
--- a/dev/skeletons/skeleton_card.php
+++ b/dev/skeletons/skeleton_card.php
@@ -230,7 +230,7 @@ jQuery(document).ready(function() {
// Part to create
if ($action == 'create')
{
- print load_fiche_titre($langs->trans("NewSkeleton"));
+ print load_fiche_titre($langs->trans("NewMyModule"));
print '