Skip to content
Snippets Groups Projects
Commit a5a3937a authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

fix quotes in SQL, fixes #1443

Closes #1443

Merge request studip/studip!2126
parent 748b12b7
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ class ThreadsIndex extends JsonApiController
private function getPublicThreads(\User $observer)
{
return $this->paginateThreads(
$this->upgradeAndFilterThreads($observer, \BlubberThread::findBySQL('context_type = "public"'))
$this->upgradeAndFilterThreads($observer, \BlubberThread::findBySQL("context_type = 'public'"))
);
}
......
......@@ -22,7 +22,7 @@ class RoomSearchWidget extends SidebarWidget
]
);
$resource_categories = ResourceCategory::findBySQL('`class_name` ="Room" ORDER by `name`');
$resource_categories = ResourceCategory::findBySQL("class_name = 'Room' ORDER by name");
$categories = [
'' => _('Alle Kategorien')
];
......
......@@ -58,7 +58,7 @@ class BlubberThreadsIndexTest extends \Codeception\Test\Unit
return count(
$this->upgradeAndFilterThreads(
$credentials,
\BlubberThread::findBySQL('context_type = "public" AND visible_in_stream')
\BlubberThread::findBySQL("context_type = 'public' AND visible_in_stream")
)
);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment