|
@@ -42,12 +42,12 @@ jQuery(document).ready(function () {
|
|
|
$sql = "
|
|
$sql = "
|
|
|
select z.`ID`
|
|
select z.`ID`
|
|
|
, z.`path` as zasob_path
|
|
, z.`path` as zasob_path
|
|
|
- , wsk.`path` as wsk_path
|
|
|
|
|
|
|
+ , wsk.`path_CRM_LISTA_ZASOBOW` as wsk_path
|
|
|
, i.`idx_PATH` as idx_path
|
|
, i.`idx_PATH` as idx_path
|
|
|
from `CRM_LISTA_ZASOBOW` z
|
|
from `CRM_LISTA_ZASOBOW` z
|
|
|
join `_zasob_path_idx` i on(i.`ID`=z.`ID`)
|
|
join `_zasob_path_idx` i on(i.`ID`=z.`ID`)
|
|
|
- left join `CRM_WSKAZNIK` wks on(wsk.`ID_ZASOB`=z.`ID`)
|
|
|
|
|
- where (z.`path`!=i.`idx_PATH` or wsk.`path`!=i.`idx_PATH`)
|
|
|
|
|
|
|
+ left join `CRM_WSKAZNIK` wsk on(wsk.`ID_ZASOB`=z.`ID`)
|
|
|
|
|
+ where (z.`path`!=i.`idx_PATH` or wsk.`path_CRM_LISTA_ZASOBOW`!=i.`idx_PATH`)
|
|
|
";
|
|
";
|
|
|
$rows = array();
|
|
$rows = array();
|
|
|
$db = DB::getDB();
|
|
$db = DB::getDB();
|