Bug fix: apply the AllowedValues constraints(as default values) when selecting elements via the "magnifier" button or creating an new element via the "plus" button... also make sure that allowed values is enforced

SVN:1.2[1721]
This commit is contained in:
Denis Flaven
2011-12-15 10:46:48 +00:00
parent c149ec8e2c
commit d321ebc8e4
5 changed files with 154 additions and 20 deletions

View File

@@ -765,6 +765,15 @@ class DBObjectSearch
return $this->m_oSearchCondition->Render($this->m_aParams, false);
}
/**
* Turn the parameters (:xxx) into scalar values in order to easily
* serialize a search
*/
public function ApplyParameters($aArgs)
{
return $this->m_oSearchCondition->ApplyParameters(array_merge($this->m_aParams, $aArgs));
}
public function serialize($bDevelopParams = false, $aContextParams = null)
{
$sOql = $this->ToOql($bDevelopParams, $aContextParams);