mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Log warning when integer is set to invalid value
This commit is contained in:
@@ -2661,6 +2661,7 @@ abstract class MetaModel
|
||||
*/
|
||||
public static function GetAttributeFlags($sClass, $sState, $sAttCode)
|
||||
{
|
||||
$iFlags = 0;
|
||||
if (self::HasLifecycle($sClass)) {
|
||||
$aStates = MetaModel::EnumStates($sClass);
|
||||
if (!array_key_exists($sState, $aStates)) {
|
||||
|
||||
Reference in New Issue
Block a user