mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
improve location: customizeQuery
This commit is contained in:
parent
c46065d9c5
commit
911e709a74
@ -9,11 +9,9 @@ class LocationController extends CRUDController
|
||||
{
|
||||
protected function customizeQuery(string $action, Request $request, $query): void
|
||||
{
|
||||
//$query->where('e.availableforusers', "'TRUE'"); // not working
|
||||
$query->where('e.availableForUsers = true'); //TODO not working
|
||||
}
|
||||
|
||||
|
||||
protected function createEntity(string $action, Request $request): object
|
||||
{
|
||||
$entity = parent::createEntity($action, $request);
|
||||
|
@ -16,8 +16,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for entity in entities %}
|
||||
{% if entity.availableForUsers %}
|
||||
<tr>
|
||||
<tr>
|
||||
<td>{{ entity.name }}</td>
|
||||
<td>{{ entity.phonenumber1 }}</td>
|
||||
<td>{{ entity.phonenumber2 }}</td>
|
||||
@ -42,7 +41,6 @@
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
Loading…
x
Reference in New Issue
Block a user