1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 23:00:51 +03:00

fix дополнительных полей

This commit is contained in:
Mzhelskiy Maxim 2014-10-01 19:06:50 +07:00
parent 7e518f1883
commit a8926cb844

View file

@ -371,6 +371,9 @@ class ModuleProperty extends ModuleORM {
return;
}
$oEntityFirst=reset($aEntitiesWork);
if (!$oEntityFirst->property) {
return;
}
$sTargetType=$oEntityFirst->property->getPropertyTargetType();
/**
* Проверяем зарегистрирован ли такой тип
@ -448,6 +451,9 @@ class ModuleProperty extends ModuleORM {
*/
public function RewriteFilter($aFilter,$sEntityFull) {
$oEntitySample=Engine::GetEntity($sEntityFull);
if (!$oEntitySample->property) {
return $aFilter;
}
if (!isset($aFilter['#join'])) {
$aFilter['#join']=array();