mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-16 23:00:51 +03:00
fix дополнительных полей
This commit is contained in:
parent
7e518f1883
commit
a8926cb844
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue