Skip to content

Commit

Permalink
dc fix cast of ref prorperty (ILIAS-eLearning#8604)
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais authored Dec 3, 2024
1 parent 79531aa commit 7f412c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public function getRecordQuerySortObject(
if (
$this->hasProperty(self::PROP_N_REFERENCE) ||
$this->getProperty(self::PROP_REFERENCE) === null ||
ilDclCache::getFieldCache($this->getProperty(self::PROP_REFERENCE))->getTableId() === 0
ilDclCache::getFieldCache((int) $this->getProperty(self::PROP_REFERENCE))->getTableId() === 0
) {
return null;
}

$ref_field = ilDclCache::getFieldCache($this->getProperty(self::PROP_REFERENCE));
$ref_field = ilDclCache::getFieldCache((int) $this->getProperty(self::PROP_REFERENCE));

$select_str = "stloc_{$this->getId()}_joined.value AS field_{$this->getId()},";
$join_str = "LEFT JOIN il_dcl_record_field AS record_field_{$this->getId()} ON (record_field_{$this->getId()}.record_id = record.id AND record_field_{$this->getId()}.field_id = "
Expand Down

0 comments on commit 7f412c0

Please sign in to comment.