View Issue Details

IDProjectCategoryView StatusLast Update
883RackTablesdefaultpublic2013-07-20 02:10
Reporterblaza-pl Assigned Toadoom42  
PrioritylowSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version0.20.4 
Target Version0.20.6Fixed in Version0.20.6 
Summary883: Add link to newly created Row & Location
DescriptionThis patch modifies message shown where Location or Row is added to include a hyperlink to newly created element (similar to the message on Add Object page).
TagsNo tags attached.

Activities

blaza-pl

blaza-pl

2013-06-11 15:07

reporter  

show_added-ophandlers.php.patch (1,130 bytes)   
--- inc/ophandlers.php	2013-04-14 22:27:19.000000000 +0200
+++ inc/ophandlers.php	2013-06-11 14:59:32.797319928 +0200
@@ -1845,7 +1845,7 @@
 	$location_id = commitAddObject ($_REQUEST['name'], NULL, 1562, NULL);
 	if ($_REQUEST['parent_id'])
 		commitLinkEntities ('location', $_REQUEST['parent_id'], 'location', $location_id);
-	return showFuncMessage (__FUNCTION__, 'OK', array ($_REQUEST['name']));
+	return showSuccess ("added location <a href='" . makeHref(array('page' => 'location', 'location_id' => $location_id)) . "'>" . $_REQUEST['name'] . "</a>");
 }
 
 $msgcode['updateLocation']['OK'] = 6;
@@ -1914,7 +1914,8 @@
 	$row_id = commitAddObject ($_REQUEST['name'], NULL, 1561, NULL);
 	if ($_REQUEST['location_id'])
 		commitLinkEntities ('location', $_REQUEST['location_id'], 'row', $row_id);
-	return showFuncMessage (__FUNCTION__, 'OK', array ($_REQUEST['name']));
+	//return showFuncMessage (__FUNCTION__, 'OK', array ($_REQUEST['name']));
+	return showSuccess ("added row <a href='" . makeHref(array('page' => 'row', 'row_id' => $row_id)) . "'>" . $_REQUEST['name'] . "</a>");
 }
 
 $msgcode['updateRow']['OK'] = 6;
adoom42

adoom42

2013-07-20 02:10

administrator   ~0001603

Nice patch. I used the mkA function instead.

Issue History

Date Modified Username Field Change
2013-06-11 15:07 blaza-pl New Issue
2013-06-11 15:07 blaza-pl File Added: show_added-ophandlers.php.patch
2013-06-12 17:21 adoom42 Assigned To => adoom42
2013-06-12 17:21 adoom42 Status new => assigned
2013-07-20 02:10 adoom42 Note Added: 0001603
2013-07-20 02:10 adoom42 Status assigned => closed
2013-07-20 02:10 adoom42 Resolution open => fixed
2013-07-20 02:10 adoom42 Fixed in Version => 0.20.6
2013-07-20 02:10 adoom42 Target Version => 0.20.6