View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
883 | RackTables | default | public | 2013-06-11 15:07 | 2013-07-20 02:10 |
Reporter | blaza-pl | Assigned To | adoom42 | ||
Priority | low | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.20.4 | ||||
Target Version | 0.20.6 | Fixed in Version | 0.20.6 | ||
Summary | 883: Add link to newly created Row & Location | ||||
Description | This 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). | ||||
Tags | No tags attached. | ||||
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; |
|
Nice patch. I used the mkA function instead. | |
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 |