diff --git a/htdocs/install/repair.php b/htdocs/install/repair.php
index cdaa0b22b7f..0338945df0f 100644
--- a/htdocs/install/repair.php
+++ b/htdocs/install/repair.php
@@ -76,6 +76,7 @@ print 'Option restore_thirdparties_logos is '.(GETPOST('restore_thirdparties_log
print 'Option clean_linked_elements is '.(GETPOST('clean_linked_elements')?GETPOST('clean_linked_elements'):'0').'
'."\n";
print 'Option clean_orphelin_dir (1 or confirmed) is '.(GETPOST('clean_orphelin_dir')?GETPOST('clean_orphelin_dir'):'0').'
'."\n";
print 'Option clean_product_stock_batch (1 or confirmed) is '.(GETPOST('clean_product_stock_batch')?GETPOST('clean_product_stock_batch'):'0').'
'."\n";
+print 'Option set_empty_time_spent_amount (1 or confirmed) is '.(GETPOST('set_empty_time_spent_amount')?GETPOST('set_empty_time_spent_amount'):'0').'
'."\n";
print '
';
print '
| '.$langs->trans("PleaseBePatient").' | |
| '.$langs->trans("PleaseBePatient").' | |
| '; + print ' | |
| *** '; print $langs->trans("Script").' | '.$file.' |
Check fields into extra table structure match table of definition. If not add column into table | |
*** Check fields into extra table structure match table of definition. If not add column into table | |
'; + print ' | |
*** Restore thirdparties logo '; //foreach($exts as $ext) //{ $sql="SELECT s.rowid, s.nom as name, s.logo FROM ".MAIN_DB_PREFIX."societe as s ORDER BY s.nom"; @@ -395,7 +396,7 @@ if ($ok && GETPOST('restore_thirdparties_logos')) // clean_linked_elements: Check and clean linked elements if ($ok && GETPOST('clean_linked_elements')) { - print ' | |
Check table of linked elements and delete orphelins links | |
*** Check table of linked elements and delete orphelins links | |
| '.checkLinkedElements('propal', 'commande')." | |
Clean orphelins files into files '.$upload_dir.' | |
*** Clean orphelins files into files '.$upload_dir.' | |
Clean table product_batch | |
*** Clean table product_batch | |
*** Set value of time spent without amount | |
| '.$obj->login.'-'.$obj->user_id.' ('.$obj->nb.' lines to fix) -> '.$obj->user_thm; + + $db->begin(); + + $sql2 ="UPDATE ".MAIN_DB_PREFIX."projet_task_time"; + $sql2.=" SET thm = ".$obj->user_thm." WHERE thm IS NULL AND fk_user = ".$obj->user_id; + $resql2=$db->query($sql2); + if (! $resql2) + { + $error++; + dol_print_error($db); + } + + if (!$error) $db->commit(); + else $db->rollback(); + + print' | |
| No time spent with empty line on users with a hourly rate defined | |