From 8983fdf5252b3081b4deb66cd5c30a9a2a598ed0 Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 14 Mar 2014 20:30:15 +0000 Subject: [PATCH] Fixed broken connector save --- custom/modules/Connectors/controller.php | 31 ++++++++++++++++++ .../themes/default/images/icon_jjwg_Maps.gif | Bin 1804 -> 0 bytes .../themes/default/images/icon_jjwg_Maps.png | Bin 3309 -> 0 bytes 3 files changed, 31 insertions(+) delete mode 100755 custom/themes/default/images/icon_jjwg_Maps.gif delete mode 100755 custom/themes/default/images/icon_jjwg_Maps.png diff --git a/custom/modules/Connectors/controller.php b/custom/modules/Connectors/controller.php index ed85de20b10..07646d8357d 100755 --- a/custom/modules/Connectors/controller.php +++ b/custom/modules/Connectors/controller.php @@ -320,6 +320,37 @@ function add_social_field($module, $field_name) } + function action_SaveModifyProperties() { + require_once('include/connectors/sources/SourceFactory.php'); + $sources = array(); + $properties = array(); + foreach($_REQUEST as $name=>$value) { + if(preg_match("/^source[0-9]+$/", $name, $matches)) { + $source_id = $value; + $properties = array(); + foreach($_REQUEST as $arg=>$val) { + if(preg_match("/^{$source_id}_(.*?)$/", $arg, $matches2)) { + $properties[$matches2[1]] = $val; + } + } + $source = SourceFactory::getSource($source_id); + if(!empty($properties)) { + $source->setProperties($properties); + $source->saveConfig(); + } + } + } + + require_once('include/connectors/utils/ConnectorUtils.php'); + ConnectorUtils::updateMetaDataFiles(); + // BEGIN SUGAR INT + if(empty($_REQUEST['from_unit_test'])) { + // END SUGAR INT + header("Location: index.php?action=ConnectorSettings&module=Connectors"); + // BEGIN SUGAR INT + } + } + private function create_panel_on_view($view, $field, $module, $panel_name){ //require and create object. diff --git a/custom/themes/default/images/icon_jjwg_Maps.gif b/custom/themes/default/images/icon_jjwg_Maps.gif deleted file mode 100755 index c160dfe901ad1942d990ab75b0c547e1560f15b4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1804 zcmV+n2lMzxNk%w1VK4wN0O$Vz4iGRC5holNG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