Log warning when integer is set to invalid value

This commit is contained in:
XavierGR
2025-04-18 11:16:52 +02:00
parent 5ba44a03ea
commit 24b2852830
3 changed files with 13 additions and 9 deletions

View File

@@ -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)) {