Skip to content

Commit 817bf9d

Browse files
authored
Fix(core): fix drag and drop fields (#1055)
* Fix(core): fix drag and drop fields * adapt CHANGELOG.md * refactor
1 parent 30b8d1b commit 817bf9d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010

1111
### Fixed
1212

13+
- Fix drag and drop
1314
- Increased the maximum length of the language column to support longer locale codes
1415

1516
## [1.22.1] - 2025-10-10

setup.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,12 @@ function plugin_init_fields()
205205
*/
206206
function plugin_fields_script_endswith($scriptname)
207207
{
208-
//append plugin directory to avoid dumb errors...
209-
$scriptname = 'fields/front/' . $scriptname;
210-
$script_name = $_SERVER['SCRIPT_NAME'];
211-
212-
return str_ends_with($script_name, $scriptname);
208+
return str_contains($_SERVER['REQUEST_URI'], $scriptname);
213209
}
214210

215211

216212

213+
217214
/**
218215
* Get the name and the version of the plugin
219216
* REQUIRED

0 commit comments

Comments
 (0)