Virer les jobs quand on vient de demander un autre statut, mais pas à chaque fois que c'est tel statut.

svn/attic/branches/v3.0.12/98521
rastapopoulos@spip.org 8 years ago
parent 4f23413b93
commit bc0e9dbee0

@ -53,7 +53,10 @@ function abonnements_post_edition($flux){
}
// Si on a mis l'abonnement inactif ou à la poubelle, on doit enlever les tâches liées
if (in_array($abonnement['statut'], array('inactif', 'poubelle'))) {
if (
isset($flux['data']['statut'])
and in_array($flux['data']['statut'], array('inactif', 'poubelle'))
) {
include_spip('action/editer_liens');
$liens = objet_trouver_liens(array('job' => '*'), array('abonnement' => $abonnement['id_abonnement']));
if ($liens and is_array($liens)){

Loading…
Cancel
Save