Skip to content

Commit a6dabad

Browse files
committed
Fix controller inflection in JS SortableComponent
1 parent bb7ae5c commit a6dabad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"autoload": {
1818
"psr-4": {
19-
"CkTools\\": "src"
19+
"CkTools\\": "src"
2020
}
2121
},
2222
"minimum-stability": "dev",

webroot/js/app/components/SortableComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ App.Components.SortableComponent = Frontend.Component.extend({
1717
App.Main.request(
1818
{
1919
plugin: this.Controller._frontendData.request.plugin,
20-
controller: this.Controller._frontendData.request.controller.replace('_', '-'),
20+
controller: this.Controller._frontendData.request.controller.replace(/_/g, '-'),
2121
action: 'sort',
2222
}, {
2323
foreignKey: foreignKey,

0 commit comments

Comments
 (0)