|
@@ -89,7 +89,7 @@ discard block |
|
|
block discarded – undo |
|
89
|
89
|
$accessor = PropertyAccess::createPropertyAccessor(); |
|
90
|
90
|
$accessor->setValue($resource, $path, $this->stringToBoolean($state)); |
|
91
|
91
|
|
|
92
|
|
- $this->getManager()->transactional(function () use ($state, $resource, $path) { |
|
|
92
|
+ $this->getManager()->transactional(function() use ($state, $resource, $path) { |
|
93
|
93
|
if ($state) { |
|
94
|
94
|
// reset other to false |
|
95
|
95
|
$this->getEntityRepository($resource)->bulkUpdate(array($path => false)); |
|
@@ -143,7 +143,7 @@ discard block |
|
|
block discarded – undo |
|
143
|
143
|
} |
|
144
|
144
|
|
|
145
|
145
|
if (is_string($ids)) { |
|
146
|
|
- $ids = explode( ',', $ids); |
|
|
146
|
+ $ids = explode(',', $ids); |
|
147
|
147
|
} |
|
148
|
148
|
|
|
149
|
149
|
$this->isGrantedOr403('delete'); |
Please login to merge, or discard this patch.