Browse Source

- When creating a new object linked to the location (contact, server, PC), the location must be pre-filled automatically.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@300 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 years ago
parent
commit
371a6b9b91
1 changed files with 3 additions and 3 deletions
  1. 3 3
      business/templates/location.html

+ 3 - 3
business/templates/location.html

@@ -10,13 +10,13 @@
 		<itopblock blockclass="DisplayBlock" type="list" object_id="$pkey$" target_attr="location_id" encoding="text/oql">SELECT bizContact WHERE location_id = $pkey$</itopblock>
 	</itoptab>
 	<itoptab name="Servers">
-		<itopblock blockclass="DisplayBlock" type="list" encoding="text/oql">SELECT bizServer WHERE location_id = $pkey$</itopblock>
+		<itopblock blockclass="DisplayBlock" type="list" encoding="text/oql" object_id="$pkey$" target_attr="location_id">SELECT bizServer WHERE location_id = $pkey$</itopblock>
 	</itoptab>
 	<itoptab name="PCs">
-		<itopblock blockclass="DisplayBlock" type="list" encoding="text/oql">SELECT bizPC WHERE location_id = $pkey$</itopblock>
+		<itopblock blockclass="DisplayBlock" type="list" encoding="text/oql" object_id="$pkey$" target_attr="location_id">SELECT bizPC WHERE location_id = $pkey$</itopblock>
 	</itoptab>
 	<itoptab name="Network_Devices">
-		<itopblock blockclass="DisplayBlock" type="list" encoding="text/oql">SELECT bizNetworkDevice WHERE location_id = $pkey$</itopblock>
+		<itopblock blockclass="DisplayBlock" type="list" encoding="text/oql" object_id="$pkey$" target_attr="location_id">SELECT bizNetworkDevice WHERE location_id = $pkey$</itopblock>
 	</itoptab>
 
 	<itoptab name="Documents">