This commit is contained in:
Laurent Destailleur 2022-12-01 20:56:11 +01:00
parent 21f1dcc3de
commit 48a423d5e3
3 changed files with 4 additions and 3 deletions

View File

@ -9068,7 +9068,7 @@ abstract class CommonObject
/**
* Function to concat keys of fields
*
* @param string $alias String of alias of table for fields. For example 't'.
* @param string $alias String of alias of table for fields. For example 't'. It is recommended to use '' and set alias into fields defintion.
* @return string list of alias fields
*/
public function getFieldList($alias = '')

View File

@ -206,6 +206,7 @@ Valid=Valid
Approve=Approve
Disapprove=Disapprove
ReOpen=Re-Open
OpenVerb=Open
Upload=Upload
ToLink=Link
Select=Select

View File

@ -110,7 +110,7 @@ class MyObject extends CommonObject
// BEGIN MODULEBUILDER PROPERTIES
/**
* @var array Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
* @var array Array with all fields into database and their property. Do not use it as a static var. It may be modified by constructor.
*/
public $fields = array(
'rowid' => array('type'=>'integer', 'label'=>'TechnicalID', 'enabled'=>1, 'visible'=>-2, 'noteditable'=>1, 'notnull'=> 1, 'index'=>1, 'position'=>1, 'comment'=>'Id', 'css'=>'left'),
@ -736,7 +736,7 @@ class MyObject extends CommonObject
public function reopen($user, $notrigger = 0)
{
// Protection
if ($this->status != self::STATUS_CANCELED) {
if ($this->status == self::STATUS_VALIDATED) {
return 0;
}