File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 246246 }
247247
248248 if (init ('action ' ) == 'byEqLogic ' ) {
249- if (init ('typeCmd ' )) {
250- ajax::success (utils::o2a (cmd::byEqLogicId (init ('eqLogic_id ' ), init ('typeCmd ' ))));
251- } else {
252- ajax::success (utils::o2a (cmd::byEqLogicId (init ('eqLogic_id ' ))));
253- }
254- }
249+ if (init ('typeCmd ' )) {
250+ ajax::success (utils::o2a (cmd::byEqLogicId (init ('eqLogic_id ' ), init ('typeCmd ' ))));
251+ } else {
252+ ajax::success (utils::o2a (cmd::byEqLogicId (init ('eqLogic_id ' ))));
253+ }
254+ }
255255
256256 if (init ('action ' ) == 'getCmd ' ) {
257257 $ cmd = cmd::byId (init ('id ' ));
422422 }
423423 $ return ['derive ' ] = $ derive ;
424424 $ groupingType = init ('groupingType ' );
425+ if (is_array ($ groupingType )) {
426+ if (isset ($ groupingType ['function ' ]) && isset ($ groupingType ['time ' ])) {
427+ $ groupingType = $ groupingType ['function ' ] . ':: ' . $ groupingType ['time ' ];
428+ } else {
429+ $ groupingType = implode (':: ' , array_values ($ groupingType ));
430+ }
431+ }
425432 if ($ groupingType == '' ) {
426433 $ groupingType = $ cmd ->getDisplay ('groupingType ' );
427434 }
497504 if (init ('action ' ) == 'getLastHistory ' ) {
498505 $ cmd = cmd::byId (init ('id ' ));
499506 $ _time = date ('Y-m-d H:i:s ' , strtotime (init ('time ' )));
500- if (is_object ($ cmd )){
507+ if (is_object ($ cmd )) {
501508 ajax::success ($ cmd ->getLastHistory ($ _time ));
502509 } else {
503510 throw new Exception (__ ('Nombre maximum de niveaux d’éléments affichés dans les graphiques de liens ' , __FILE__ ) . ' ' . init ('id ' ));
You can’t perform that action at this time.
0 commit comments