Skip to content

Commit 16a96f9

Browse files
committed
Merge branch 'fix-unit-group-edit-1' into v5.0.x
2 parents 5e6c971 + 0defec6 commit 16a96f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Crud/UnitGroupCrud.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,15 @@ public function setActions( CrudEntry $entry ): CrudEntry
281281
identifier: 'edit',
282282
label: __( 'Edit' ),
283283
type: 'GOTO',
284-
url: ns()->url( '/dashboard/' . 'units' . '/edit/' . $entry->id )
284+
url: ns()->url( '/dashboard/units/groups/edit/' . $entry->id )
285285
);
286286

287287
// Snippet 2
288288
$entry->action(
289289
identifier: 'delete',
290290
label: __( 'Delete' ),
291291
type: 'DELETE',
292-
url: ns()->url( '/api/crud/ns.units/' . $entry->id ),
292+
url: ns()->url( '/api/crud/ns.units-groups/' . $entry->id ),
293293
confirm: [
294294
'message' => __( 'Would you like to delete this ?' ),
295295
]

0 commit comments

Comments
 (0)