diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php
index 039c45125b5..386679e3d41 100644
--- a/htdocs/expedition/shipment.php
+++ b/htdocs/expedition/shipment.php
@@ -893,7 +893,7 @@ if ($id > 0 || ! empty($ref))
print $langs->trans("WarehouseSource");
//print '';
//print '
';
- print $formproduct->selectWarehouses(! empty($object->warehouse_id)?$object->warehouse_id:-1, 'entrepot_id', '', 1, 0, 0, '', 0, 0, array(), 'minwidth200');
+ print $formproduct->selectWarehouses(! empty($object->warehouse_id)?$object->warehouse_id:'ifone', 'entrepot_id', '', 1, 0, 0, '', 0, 0, array(), 'minwidth200');
if (count($formproduct->cache_warehouses) <= 0)
{
print ' '.$langs->trans("WarehouseSourceNotDefined").' '.$langs->trans("AddOne").'';
diff --git a/htdocs/projet/activity/perday.php b/htdocs/projet/activity/perday.php
index 5665a2fb505..3c9fc7cd3dc 100644
--- a/htdocs/projet/activity/perday.php
+++ b/htdocs/projet/activity/perday.php
@@ -38,6 +38,8 @@ require_once DOL_DOCUMENT_ROOT.'/holiday/class/holiday.class.php';
// Load translation files required by the page
$langs->loadLangs(array('projects','users','companies'));
+$hookmanager->initHooks(array('timesheetperdaycard'));
+
$action=GETPOST('action','aZ09');
$mode=GETPOST("mode",'alpha');
$id=GETPOST('id','int');
diff --git a/htdocs/projet/activity/perweek.php b/htdocs/projet/activity/perweek.php
index af468d03921..075245ec7d8 100644
--- a/htdocs/projet/activity/perweek.php
+++ b/htdocs/projet/activity/perweek.php
@@ -38,6 +38,8 @@ require_once DOL_DOCUMENT_ROOT.'/holiday/class/holiday.class.php';
// Load translation files required by the page
$langs->loadLangs(array('projects','users','companies'));
+$hookmanager->initHooks(array('timesheetperweekcard'));
+
$action=GETPOST('action','aZ09');
$mode=GETPOST("mode",'alpha');
$id=GETPOST('id','int');
|