Skip to content

Commit

Permalink
2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
benkeen committed Apr 4, 2023
1 parent dd864fc commit 5f45d56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions code/Fields.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public static function getClientFields($page_num = 1, $num_per_page = 10, $searc
$where_clause = "";
if (!empty($search)) {
$clauses = array();
while (list($key, $value) = each($search)) {
foreach ($search as $key => $value) {
$clauses[] = "$key = '$value'";
}
if (!empty($clauses)) {
Expand Down Expand Up @@ -438,14 +438,13 @@ public static function displayFields($location, $template_vars)
$smarty->assign("fields", $field_info);

// tack on all the template vars passed by the page
while (list($key, $value) = each($template_vars)) {
foreach ($template_vars as $key => $value) {
$smarty->assign($key, $value);
}

echo $smarty->fetch("$root_dir/modules/extended_client_fields/smarty_plugins/section_html.tpl");
}


/**
* This function is called whenever the administrator updates the client, for either of the
* main or settings tabs.
Expand Down
4 changes: 2 additions & 2 deletions code/Module.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class Module extends FormToolsModule
protected $author = "Ben Keen";
protected $authorEmail = "[email protected]";
protected $authorLink = "https://formtools.org";
protected $version = "2.1.0";
protected $date = "2019-01-10";
protected $version = "2.1.1";
protected $date = "2023-04-03";
protected $originLanguage = "en_us";
protected $jsFiles = array(
"{MODULEROOT}/scripts/field_options.js"
Expand Down

0 comments on commit 5f45d56

Please sign in to comment.