mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 16:48:42 +02:00
(Retrofit from trunk) DBObject::ExecActions : add_to_list action now accepts the source object id as first parameter
SVN:2.3[4648]
This commit is contained in:
@@ -3406,7 +3406,7 @@ abstract class DBObject implements iDisplay
|
||||
throw new Exception('Missing argument #1: source attribute');
|
||||
}
|
||||
$sSourceKeyAttCode = $aParams[0];
|
||||
if (!MetaModel::IsValidAttCode(get_class($oObjectToRead), $sSourceKeyAttCode))
|
||||
if (($sSourceKeyAttCode != 'id') && !MetaModel::IsValidAttCode(get_class($oObjectToRead), $sSourceKeyAttCode))
|
||||
{
|
||||
throw new Exception("Unknown attribute ".get_class($oObjectToRead)."::".$sSourceKeyAttCode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user