Merge pull request #13278 from AlfredSK/AlfredSK-fix-column-name
Fix db error: missing column name 'line-text'
This commit is contained in:
commit
81d2d4b70e
|
@ -109,7 +109,7 @@ final class Report extends \Friendica\BaseRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
$reportPosts = new Collection\Report\Posts(array_map([$this->postFactory, 'createFromTableRow'], $this->db->selectToArray('report-post', ['uri-id', 'status'], ['rid' => $condition['id'] ?? 0])));
|
$reportPosts = new Collection\Report\Posts(array_map([$this->postFactory, 'createFromTableRow'], $this->db->selectToArray('report-post', ['uri-id', 'status'], ['rid' => $condition['id'] ?? 0])));
|
||||||
$reportRules = new Collection\Report\Rules(array_map([$this->ruleFactory, 'createFromTableRow'], $this->db->selectToArray('report-rule', ['line-id', 'line-text'], ['rid' => $condition['id'] ?? 0])));
|
$reportRules = new Collection\Report\Rules(array_map([$this->ruleFactory, 'createFromTableRow'], $this->db->selectToArray('report-rule', ['line-id', 'text'], ['rid' => $condition['id'] ?? 0])));
|
||||||
|
|
||||||
return $this->factory->createFromTableRow($fields, $reportPosts, $reportRules);
|
return $this->factory->createFromTableRow($fields, $reportPosts, $reportRules);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue