Commit ab0a6afe authored by Raphael's avatar Raphael
Browse files

hotfix network

parent 3f4e9545
......@@ -1097,9 +1097,8 @@ class Element {
//$paramsImport = (empty($params["paramsImport"])?null:$params["paramsImport"]);
$paramsLinkImport = ( empty($params["paramsImport"] ) ? null : $params["paramsImport"]);
unset($params['collection']);
unset($params['collection']);
unset($params['key']);
$params = self::prepData( $params );
unset($params["paramsImport"]);
......@@ -1124,7 +1123,7 @@ class Element {
}
if( $valid["result"] )
try {
$valid = DataValidator::validate( ucfirst($key), json_decode (json_encode ($params), true) );
$valid = DataValidator::validate( ucfirst($key), json_decode (json_encode ($params), true), ( empty($paramsLinkImport ) ? null : true));
} catch (CTKException $e) {
$valid = array("result"=>false, "msg" => $e->getMessage());
}
......
This diff is collapsed.
......@@ -69,6 +69,8 @@ class Organization {
"contacts" => array("name" => "contacts"),
"disabled" => array("name" => "disabled"),
"descriptionHTML" => array("name" => "descriptionHTML"),
"socialNetwork" => array("name" => "socialNetwork"),
"facebook" => array("name" => "socialNetwork.facebook"),
);
//See findOrganizationByCriterias...
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment