mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Prevent Binput from trimming values when dealing with metric suffixes
This commit is contained in:
parent
1402242766
commit
0e40fe4d3f
@ -17,6 +17,7 @@ use CachetHQ\Cachet\Http\Controllers\AbstractController;
|
||||
use CachetHQ\Cachet\Models\Metric;
|
||||
use CachetHQ\Cachet\Models\MetricPoint;
|
||||
use GrahamCampbell\Binput\Facades\Binput;
|
||||
use Illuminate\Support\Facades\Input;
|
||||
use Illuminate\Support\Facades\Redirect;
|
||||
use Illuminate\Support\Facades\View;
|
||||
|
||||
@ -121,7 +122,7 @@ class MetricController extends AbstractController
|
||||
*/
|
||||
public function createMetricPointAction()
|
||||
{
|
||||
$_point = Binput::get('point');
|
||||
$_point = Binput::get('point', null, false);
|
||||
$point = MetricPoint::create($_point);
|
||||
|
||||
if (!$point->isValid()) {
|
||||
@ -181,8 +182,8 @@ class MetricController extends AbstractController
|
||||
*/
|
||||
public function editMetricAction(Metric $metric)
|
||||
{
|
||||
$_metric = Binput::get('metric');
|
||||
$metric->update($_metric);
|
||||
$metricData = Binput::get('metric', null, false);
|
||||
$metric->update($metricData);
|
||||
|
||||
if (!$metric->isValid()) {
|
||||
segment_track('Dashboard', [
|
||||
|
Loading…
x
Reference in New Issue
Block a user