From e8a80c6a20ac56da174fbcac1b8bde8cbe6e948e Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 19 Mar 2017 11:13:15 -0400 Subject: [PATCH] Fix allocation parsing bug. --- CHANGELOG.md | 1 + app/Repositories/NodeRepository.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8179f1b7d..2776cd14d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. ## v0.6.0-pre.7 (Courageous Carniadactylus) ### Fixed * `[pre.6]` — Addresses misconfigured console queue that was still sending data way to quickly thus causing the console to explode on some devices when large amounts of data were sent. +* `[pre.6]` — Fixes bug in allocation parsing for a node that prevented adding new allocations. ## v0.6.0-pre.6 (Courageous Carniadactylus) ### Fixed diff --git a/app/Repositories/NodeRepository.php b/app/Repositories/NodeRepository.php index 0c2c455c1..ec6ce15ec 100644 --- a/app/Repositories/NodeRepository.php +++ b/app/Repositories/NodeRepository.php @@ -203,7 +203,7 @@ class NodeRepository } } - DB::transaction(function () use ($parsed, $node, $data) { + DB::transaction(function () use ($data, $node) { foreach (Network::parse(gethostbyname($data['allocation_ip'])) as $ip) { foreach ($data['allocation_ports'] as $port) { // Determine if this is a valid single port, or a valid port range.