r5011 bugfix: fetchPortList: wrong field name 'cable_id' renamed to 'cableid'
authorAlexey Andriyanov <alan@al-an.info>
Fri, 23 Mar 2012 10:49:14 +0000 (10:49 +0000)
committerAlexey Andriyanov <alan@al-an.info>
Fri, 23 Mar 2012 10:49:14 +0000 (10:49 +0000)
wwwroot/inc/database.php

index 43868fbdb2fa617c7e6124ac91d9fce75432c0bd..81a58222dbe4a9a24a3c48ffe9abcac07dc43591 100644 (file)
@@ -704,7 +704,7 @@ SELECT
        Port.type AS oif_id,
        (SELECT PortInnerInterface.iif_name FROM PortInnerInterface WHERE PortInnerInterface.id = Port.iif_id) AS iif_name,
        (SELECT Dictionary.dict_value FROM Dictionary WHERE Dictionary.dict_key = Port.type) AS oif_name,
-       IF(la.porta, la.cable, lb.cable) AS cable_id,
+       IF(la.porta, la.cable, lb.cable) AS cableid,
        IF(la.porta, pa.id, pb.id) AS remote_id,
        IF(la.porta, pa.name, pb.name) AS remote_name,
        IF(la.porta, pa.object_id, pb.object_id) AS remote_object_id,