We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb613f6 commit 0444297Copy full SHA for 0444297
app/Http/Controllers/UserController.php
@@ -134,7 +134,7 @@ public function addLink(request $request)
134
$links->title = $title;
135
$links->button_id = $buttonId;
136
$links->save();
137
- $links->order = (intval($links->id) - 1);
+ $links->order = ($links->id - 1);
138
139
140
return back();
@@ -157,7 +157,7 @@ public function sortLinks(Request $request)
157
]);
158
}
159
160
- $newOrder = $startLinkOrder = $perPage * ($currentPage - 1);
+ $newOrder = $perPage * ($currentPage - 1);
161
$linkNewOrders = [];
162
foreach ($linkOrders as $linkId) {
163
if ($linkId < 0) {
0 commit comments