From: vincent@cubedesigners.com Date: Mon, 18 Feb 2013 17:14:08 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=45a2c2fd331b0b08007c58a046f4c4a6226f83d0;p=cubeextranet.git --- diff --git a/inc/ws/Controlleur/class.ws.ajax.php b/inc/ws/Controlleur/class.ws.ajax.php index f99138abc..39713b536 100644 --- a/inc/ws/Controlleur/class.ws.ajax.php +++ b/inc/ws/Controlleur/class.ws.ajax.php @@ -211,7 +211,7 @@ class wsAjax extends cubeAjax { $datas = array(); foreach ($_POST['group'] as $gid => $group) { - if ($gid && $gid == '_new') { + if ($gid && $gid == 'new_') { continue; } @@ -223,7 +223,7 @@ class wsAjax extends cubeAjax { } $group['publications'] = $publications; } else { - $group['publications'] = array($dao->_emptyPublication); + $group['publications'] = array($dao->_emptyPublication()); } $datas[] = $group; @@ -231,13 +231,11 @@ class wsAjax extends cubeAjax { if (count($datas) == 0) { $datas = $dao->_emptyCollection(); } - - fb($datas); - + $save['datas'] = $datas; $dao->sauve($save); - //$x->addReload(); + $x->addReload(); } public static function changeBookProprietaire($args, &$x) { diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 231f6cc78..78c057d24 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -252,7 +252,7 @@ class wsUrl { if ($gid && $gid == 'new_') { $class.=' empty'; } - $res.='
  • '; + $res.='
  • '; $res.='
    '; $res.=''; $g = 'group[' . $gid . ']'; @@ -261,17 +261,23 @@ class wsUrl { $res.='
    '; $res.='