Removing one link, removes all links (not just the two slave-master and master-slave).
I'm using the latest minishop2 and referring to this code here
https://github.com/bezumkin/miniShop2/raw/master/core/components/minishop2/processors/mgr/product/productlink/remove.class.php
I've added this code
before
this is the ajax request
action:mgr/product/productlink/remove
link:2
master:130
slave:179
but this is the resulting query I see from the dump
DELETE FROM `modx_ms2_product_links`
WHERE ( `modx_ms2_product_links`.`link` = 2 AND ( `modx_ms2_product_links`.`master` = 179 OR `modx_ms2_product_links`.`slave` = 179 ) )
there is nothing telling it to delete only items where the ids are both 179 AND 130.
Is this inteded functionality, something I missed in the settings, or a bug in the code? I'm wondering if I did something wrong before I go and try to edit the code of another plugin.