2
0
forked from Wavyzz/dolibarr

Miscellaneous fixes

This commit is contained in:
Laurent Destailleur
2015-12-16 19:26:50 +01:00
parent 90dbfc4870
commit f87ccc97e2
3 changed files with 13 additions and 4 deletions

View File

@@ -166,7 +166,11 @@ class modMyModule extends DolibarrModules
// Add here list of php file(s) stored in core/boxes that contains class to show a box.
$this->boxes = array(); // List of boxes
// Example:
//$this->boxes=array(array(0=>array('file'=>'myboxa.php','note'=>'','enabledbydefaulton'=>'Home'),1=>array('file'=>'myboxb.php','note'=>''),2=>array('file'=>'myboxc.php','note'=>'')););
//$this->boxes=array(
// 0=>array('file'=>'myboxa.php@mymodule','note'=>'','enabledbydefaulton'=>'Home'),
// 1=>array('file'=>'myboxb.php@mymodule','note'=>''),
// 2=>array('file'=>'myboxc.php@mymodule','note'=>'')
//);
// Cronjobs
$this->cronjobs = array(); // List of cron jobs entries to add

View File

@@ -2901,8 +2901,7 @@ class Propal extends CommonObject
/**
* \class PropaleLigne
* \brief Class to manage commercial proposal lines
* Class to manage commercial proposal lines
*/
class PropaleLigne extends CommonObjectLine
{

View File

@@ -184,7 +184,13 @@ if (empty($reshook))
$action = "create";
$error++;
}
if (! empty(GETPOST('duration_value')) && empty(GETPOST('duration_unit')))
{
setEventMessage($langs->trans('ErrorFieldRequired',$langs->transnoentities('Unit')), 'errors');
$action = "create";
$error++;
}
if (! $error)
{
$units = GETPOST('units', 'int');