@@ -931,10 +931,10 @@ public function postInsert()
931
931
public function postSave ()
932
932
{
933
933
if ($ this ->getConfiguration ('appVersion ' , 1 ) == 2 ) {
934
+ $ order = count ($ this ->getCmd ());
934
935
// Commande notification
935
936
$ cmd = $ this ->getCmd (null , 'notif ' );
936
937
if (!is_object ($ cmd )) {
937
- $ order = count ($ this ->getCmd ());
938
938
$ cmd = new mobileCmd ();
939
939
$ cmd ->setIsVisible (1 );
940
940
$ cmd ->setName (__ ('Notification ' , __FILE__ ));
@@ -945,6 +945,7 @@ public function postSave()
945
945
$ cmd ->setDisplay ('showIconAndNamedashboard ' , 1 );
946
946
$ cmd ->setDisplay ('showIconAndNamemobile ' , 1 );
947
947
$ cmd ->setOrder ($ order );
948
+ $ order ++;
948
949
}
949
950
$ cmd ->setEqLogic_id ($ this ->getId ());
950
951
$ cmd ->setType ('action ' );
@@ -954,7 +955,6 @@ public function postSave()
954
955
// Commande notification Critique
955
956
$ cmd = $ this ->getCmd (null , 'notifCritical ' );
956
957
if (!is_object ($ cmd )) {
957
- $ order = count ($ this ->getCmd ());
958
958
$ cmd = new mobileCmd ();
959
959
$ cmd ->setIsVisible (1 );
960
960
$ cmd ->setName (__ ('Notification Critique ' , __FILE__ ));
@@ -965,6 +965,7 @@ public function postSave()
965
965
$ cmd ->setDisplay ('showIconAndNamedashboard ' , 1 );
966
966
$ cmd ->setDisplay ('showIconAndNamemobile ' , 1 );
967
967
$ cmd ->setOrder ($ order );
968
+ $ order ++;
968
969
}
969
970
$ cmd ->setEqLogic_id ($ this ->getId ());
970
971
$ cmd ->setType ('action ' );
@@ -974,7 +975,6 @@ public function postSave()
974
975
// Commande récupération infos du téléphone
975
976
$ cmd = $ this ->getCmd (null , 'notifSpecific ' );
976
977
if (!is_object ($ cmd )) {
977
- $ order = count ($ this ->getCmd ());
978
978
$ cmd = new mobileCmd ();
979
979
$ cmd ->setIsVisible (0 );
980
980
$ cmd ->setName (__ ('Récupérer les informations du téléphone ' , __FILE__ ));
@@ -985,6 +985,7 @@ public function postSave()
985
985
$ cmd ->setDisplay ('showIconAndNamedashboard ' , 1 );
986
986
$ cmd ->setDisplay ('showIconAndNamemobile ' , 1 );
987
987
$ cmd ->setOrder ($ order );
988
+ $ order ++;
988
989
}
989
990
$ cmd ->setEqLogic_id ($ this ->getId ());
990
991
$ cmd ->setType ('action ' );
@@ -994,7 +995,6 @@ public function postSave()
994
995
// Commande suppression des nodifications
995
996
$ cmd = $ this ->getCmd (null , 'removeNotifs ' );
996
997
if (!is_object ($ cmd )) {
997
- $ order = count ($ this ->getCmd ());
998
998
$ cmd = new mobileCmd ();
999
999
$ cmd ->setIsVisible (1 );
1000
1000
$ cmd ->setName (__ ('Supprimer les Notifications ' , __FILE__ ));
@@ -1005,6 +1005,7 @@ public function postSave()
1005
1005
$ cmd ->setDisplay ('showIconAndNamedashboard ' , 1 );
1006
1006
$ cmd ->setDisplay ('showIconAndNamemobile ' , 1 );
1007
1007
$ cmd ->setOrder ($ order );
1008
+ $ order ++;
1008
1009
}
1009
1010
$ cmd ->setEqLogic_id ($ this ->getId ());
1010
1011
$ cmd ->setType ('action ' );
0 commit comments