Ignore:
Timestamp:
Sep 30, 2016, 12:20:58 PM (3 years ago)
Author:
cedric@…
Message:

Suppression de la table spip_organisations_contacts et basculement sur spip_organisations_liens. Suppression de la dependance au plugin editer_liens_simples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/contacts_et_organisations/trunk/contacts_pipelines.php

    r98208 r99749  
    205205                        sql_delete("spip_contacts_liens", "id_contact=" . sql_quote($id_contact));
    206206                        sql_delete("spip_contacts", "id_contact=" . sql_quote($id_contact));
    207                         sql_delete("spip_organisations_contacts", "id_contact=" . sql_quote($id_contact));
     207                        sql_delete("spip_organisations_liens", "objet=".sql_quote('contact')." AND id_objet=" . sql_quote($id_contact));
    208208                        $n++;
    209209                }
     
    225225                        sql_delete("spip_organisations_liens", "id_organisation=" . sql_quote($id_organisation));
    226226                        sql_delete("spip_organisations", "id_organisation=" . sql_quote($id_organisation));
    227                         sql_delete("spip_organisations_contacts", "id_organisation=" . sql_quote($id_organisation));
    228227                        $n++;
    229228                }
Note: See TracChangeset for help on using the changeset viewer.