commit 7a1e8ef87055e204ea2d383165564444b8de2f41
parent 19ff84ee8c3cdd7bb1f77b9b82193c53824d5e7d
Author: Felicia Hummel <felicitus@felicitus.org>
Date: Thu, 18 Aug 2016 21:53:44 +0200
Merge pull request #720 from partkeepr/PartKeepr-686
Fixed wrong if statement - now properly comments the stock entry with…
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PartKeepr/PartBundle/Controller/PartController.php b/src/PartKeepr/PartBundle/Controller/PartController.php
@@ -53,7 +53,7 @@ class PartController extends FOSRestController
$stock->setStockLevel(0 - intval($removal->amount));
$stock->setUser($user);
- if (!property_exists($removal, 'comment')) {
+ if (property_exists($removal, 'comment')) {
$stock->setComment($removal->comment);
}