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;