From dfcebfcbea541bcc52c9c12af7add460ffa7de77 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 19 Sep 2019 16:16:57 +0200 Subject: [PATCH] :art: Remove useless consecutive call --- core/dbobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 3394ddac5..00e2b0122 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -3590,7 +3590,7 @@ abstract class DBObject implements iDisplay $sStateAttCode = MetaModel::GetStateAttributeCode(get_class($this)); if (empty($sStateAttCode)) return array(); - $sState = $this->Get(MetaModel::GetStateAttributeCode(get_class($this))); + $sState = $this->Get($sStateAttCode); return MetaModel::EnumTransitions(get_class($this), $sState); }