44 * This file contains all functions relating to the field types (select, radios etc). Added in 2.1.0
55 * with the addition of Custom Fields.
66 *
7- * @copyright Benjamin Keen 2018
7+ * @copyright Benjamin Keen 2023
88 * @author Benjamin Keen <ben.keen@gmail.com>
99 * @package 3-0-x
1010 */
@@ -710,7 +710,7 @@ public static function getFieldTypeProcessingInfo()
710710 * @param $field_ids
711711 * @return array a hash of [field_id][identifier] = values
712712 */
713- public static function getFormFieldFieldTypeSettings ($ field_ids = array () , $ form_fields )
713+ public static function getFormFieldFieldTypeSettings ($ field_ids , $ form_fields )
714714 {
715715 $ db = Core::$ db ;
716716
@@ -1439,7 +1439,7 @@ public static function get($return_settings = false, $field_type_ids = array())
14391439 SELECT *, g.list_order as group_list_order, ft.list_order as field_type_list_order
14401440 FROM {PREFIX}field_types ft, {PREFIX}list_groups g
14411441 WHERE g.group_type = :field_types AND
1442- ft.group_id = g.group_id AND
1442+ ft.group_id = g.group_id AND
14431443 ft.field_type_id IN ( $ field_type_id_str)
14441444 ORDER BY g.list_order, ft.list_order
14451445 " );
@@ -1534,7 +1534,7 @@ public static function addFieldTypeSettingOptions($options)
15341534 {
15351535 $ db = Core::$ db ;
15361536
1537- $ query = "INSERT INTO {PREFIX}field_type_setting_options (setting_id, option_text, option_value, option_order,
1537+ $ query = "INSERT INTO {PREFIX}field_type_setting_options (setting_id, option_text, option_value, option_order,
15381538 is_new_sort_group) VALUES (:setting_id, :option_text, :option_value, :option_order, :is_new_sort_group) " ;
15391539
15401540 foreach ($ options as $ option ) {
@@ -1558,7 +1558,7 @@ public static function deleteFieldTypeSettingsByFieldTypeId($field_type_id)
15581558 $ db ->query ("
15591559 SELECT setting_id
15601560 FROM {PREFIX}field_type_settings
1561- WHERE field_type_id = :field_type_id
1561+ WHERE field_type_id = :field_type_id
15621562 " );
15631563 $ db ->bind ("field_type_id " , $ field_type_id );
15641564 $ db ->execute ();
@@ -1878,7 +1878,7 @@ public static function resetFieldTypeSettings ($field_type_data)
18781878 // here, this is a new setting added to the field type that the users installation doesn't have
18791879 if ($ found_setting === null ) {
18801880 $ db ->query ("
1881- INSERT INTO {PREFIX}field_type_settings (field_label, field_type, field_orientation, default_value_type,
1881+ INSERT INTO {PREFIX}field_type_settings (field_label, field_type, field_orientation, default_value_type,
18821882 default_value, list_order)
18831883 VALUES (:field_label, :field_type, :field_orientation, :default_value_type, :default_value, :list_order)
18841884 " );
0 commit comments