Created
January 13, 2012 19:38
-
-
Save sevein/1608301 to your computer and use it in GitHub Desktop.
Fix for issue 2219, change regular expression to capture ID properly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: apps/qubit/modules/contactinformation/actions/editComponent.class.php | |
| =================================================================== | |
| --- apps/qubit/modules/contactinformation/actions/editComponent.class.php (revision 10667) | |
| +++ apps/qubit/modules/contactinformation/actions/editComponent.class.php (working copy) | |
| @@ -119,7 +119,7 @@ | |
| { | |
| if (isset($item['id'])) | |
| { | |
| - $this->contactInformation = QubitContactInformation::getById(preg_replace('/^(.*)(\d+)$/', '$2', $item['id'])); | |
| + $this->contactInformation = QubitContactInformation::getById(preg_replace('/^.*\/(\d+)$/', '$1', $item['id'])); | |
| } | |
| else | |
| { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment