Plici

| Liste des tâches |

FS#682 - probleme MAJ ticket discount pour tout le monde

Concerne le projet: Plici
Ouverte par Mallet (fmallet) - samedi, 28 novembre 2009, 10:36 GMT+1
Dernière édition par TRICHET Stéphane (stephanet) - mardi, 01 décembre 2009, 13:55 GMT+1
Type de tâche Bug / Erreur
Catégorie Administration
Etat Non reproduit
Assignée à Personne
Système d'exploitation All
Sévérité Moyenne
Priorité Normale
Basée sur la version 2.0.0.Stable.r.1878
Due pour la version 2.1.0
Date d'échéance Non décidé
Pourcentage achevé: 0%
Votes 0
Privée Non

Détails

probleme MAJ ticket discount pour tout le monde. Bug pour V1.0 et V2.0.0 1978

Le champ "pour tout le monde" est toutjours mis pas de possibilité d'update.

T_productmodifier.class.php function UpdateProductModifier

code modifié:
// Usefull for ticket
$object_t_customer_has_t_productmaster =& $g_object_loader->getTCustomerHasTProductmaster();
$customer_id = "ALL";
$pma_id = 0;
if ("YES" == $p_pmo_for_all)
{
if ($object_t_customer_has_t_productmaster->insertCustommerHasTProductMaster($customer_id, $pma_id, $p_pk_pmo_id))
return TRUE;
} else {
//$customer_id = ""; // MODIFIED Supprime les reductions pour tout le monde
$nof_discount_deleted = 0;
if ($object_t_customer_has_t_productmaster->deleteDiscount($customer_id, $pma_id, $p_pk_pmo_id, "TICKET", $nof_discount_deleted))
return TRUE;
$customer_id = ""; // Supprime les produits
if ($object_t_customer_has_t_productmaster->deleteDiscount($customer_id, $pma_id, $p_pk_pmo_id, "TICKET", $nof_discount_deleted))
return TRUE;

}



----------
Elements à remplir si il s'agit d'une amélioration ou d'une nouvelle fonctionnalité :
[plici_sponsor_url][/plici_sponsor_url]
[plici_sponsor_name][/plici_sponsor_name]
[plici_categorie][/plici_categorie]
[plici_subcategorie][/plici_subcategorie]
[plici_categ_http_image][/plici_categ_http_image]
[plici_subcateg_http_image][/plici_subcateg_http_image]

Dans tous les cas, merci de consulter la documentation :
-Corriger un bug sur PLICI : http://wiki.plici.net/documentation_developpeurs:corriger_un_bug_sur_plici
-Faire une amélioration ou une nouveauté sur PLICI : http://wiki.plici.net/documentation_developpeurs:faire_une_amelioration_ou_une_nouveaute_sur_plici
Cette tâche dépend de

Commentaire de Mallet (fmallet) - samedi, 28 novembre 2009, 14:45 GMT+1
Le code suivant suffit:

if ("YES" == $p_pmo_for_all)
{
if ($object_t_customer_has_t_productmaster->insertCustommerHasTProductMaster($customer_id, $pma_id, $p_pk_pmo_id))
return TRUE;
} else {
//$customer_id = ""; // MODIFIED Supprime les reductions pour tout le monde
$nof_discount_deleted = 0;
if ($object_t_customer_has_t_productmaster->deleteDiscount($customer_id, $pma_id, $p_pk_pmo_id, "TICKET", $nof_discount_deleted))
return TRUE;
}

Chargement...