forked from Wavyzz/dolibarr
Miscellaneous fixes
This commit is contained in:
@@ -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.
|
// Add here list of php file(s) stored in core/boxes that contains class to show a box.
|
||||||
$this->boxes = array(); // List of boxes
|
$this->boxes = array(); // List of boxes
|
||||||
// Example:
|
// 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
|
// Cronjobs
|
||||||
$this->cronjobs = array(); // List of cron jobs entries to add
|
$this->cronjobs = array(); // List of cron jobs entries to add
|
||||||
|
|||||||
@@ -2901,8 +2901,7 @@ class Propal extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class PropaleLigne
|
* Class to manage commercial proposal lines
|
||||||
* \brief Class to manage commercial proposal lines
|
|
||||||
*/
|
*/
|
||||||
class PropaleLigne extends CommonObjectLine
|
class PropaleLigne extends CommonObjectLine
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -184,6 +184,12 @@ if (empty($reshook))
|
|||||||
$action = "create";
|
$action = "create";
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
if (! empty(GETPOST('duration_value')) && empty(GETPOST('duration_unit')))
|
||||||
|
{
|
||||||
|
setEventMessage($langs->trans('ErrorFieldRequired',$langs->transnoentities('Unit')), 'errors');
|
||||||
|
$action = "create";
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user