Skip to content

Commit a17ece7

Browse files
committed
Fix form limitation
1 parent acf6033 commit a17ece7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

JSInjectorExternalModule.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ function parse_settings($project_id = null, $contexts) {
347347
$snippet["code"] = $ps["proj-code"][$i];
348348
$snippet["proj-limit"] = "include";
349349
$snippet["proj-list"] = [$project_id];
350-
$snippet["form-list"] = $ps["proj-instruments"][$i];
350+
$snippet["form-list"] = array_filter($ps["proj-instruments"][$i], function($item) {
351+
return !empty($item);
352+
});
351353
$snippet["ctx"]["projall"] = $ps["proj-context_all"][$i] == true;
352354
$snippet["ctx"]["sysall"] = false;
353355
foreach ($contexts as $this_context) {

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ The original version of this external module was basically just a modified versi
7979

8080
Version | Description
8181
------- | ------------------
82+
2.0.1 | Bugfix (broken form list limitation).
8283
2.0.0 | Major new feature: System and pan-project injections.<br>Redesigned page limitation setup (old settings will be migrated automatically).<br>Debug logging.
8384
1.1.4 | Added additional injection options.
8485
1.1.3 | Fix an issue where a (silent, but logged) exception would be thrown.

0 commit comments

Comments
 (0)