Skip to content

Commit 85af8b6

Browse files
committed
closes #6
1 parent f07e85b commit 85af8b6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

code/Fields.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ public static function updateViewFilterSqlPlaceholders($info)
654654
if ($is_client_account) {
655655
$settings = Sessions::get("account.settings");
656656
if (is_array($settings)) {
657-
while (list($key, $value) = each($settings)) {
657+
foreach ($settings as $key => $value) {
658658
if (preg_match("/^ecf_(\d)+$/", $key, $matches)) {
659659
$info["placeholders"][$key] = $value;
660660
}

code/Module.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class Module extends FormToolsModule
1919
protected $author = "Ben Keen";
2020
protected $authorEmail = "[email protected]";
2121
protected $authorLink = "https://formtools.org";
22-
protected $version = "2.0.3";
23-
protected $date = "2018-01-20";
22+
protected $version = "2.0.4";
23+
protected $date = "2018-05-07";
2424
protected $originLanguage = "en_us";
2525
protected $jsFiles = array(
2626
"{MODULEROOT}/scripts/field_options.js"
@@ -145,7 +145,7 @@ public function resetHooks()
145145
Hooks::registerHook("code", "extended_client_fields", "end", "FormTools\\Clients::updateClient", "clientSaveExtendedClientFields");
146146

147147
// general code hooks
148-
Hooks::registerHook("code", "extended_client_fields", "start", "FormTools\\Views::getViewFilterSql", "updateViewFilterSqlPlaceholders");
148+
Hooks::registerHook("code", "extended_client_fields", "start", "FormTools\\ViewFilters::getViewFilterSql", "updateViewFilterSqlPlaceholders");
149149
}
150150

151151

@@ -224,6 +224,6 @@ public function clientSaveExtendedClientFields($postdata) {
224224
}
225225

226226
public function updateViewFilterSqlPlaceholders($info) {
227-
Fields::updateViewFilterSqlPlaceholders($info);
227+
return Fields::updateViewFilterSqlPlaceholders($info);
228228
}
229229
}

0 commit comments

Comments
 (0)